Commit 7c38ecd0 authored by Kirill Batuzov's avatar Kirill Batuzov Committed by Michael S. Tsirkin
Browse files

acpi/pcihp.c: Rewrite acpi_pcihp_get_bsel using object_property_get_int



acpi_pcihp_get_bsel implements functionality of object_property_get_int for
specific property named ACPI_PCIHP_PROP_BSEL, but fails to decrement object's
reference counter properly. Rewriting it using generic object_property_get_int
serves two purposes: reducing code duplication and fixing memory leak.

Signed-off-by: default avatarKirill Batuzov <batuzovk@ispras.ru>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 98983704
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment