diff options
author | Kirill Batuzov <batuzovk@ispras.ru> | 2014-04-24 18:15:56 +0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-05-07 12:13:42 +0300 |
commit | 7c38ecd09763107513bacc791856fdbb582a107c (patch) | |
tree | 9688dde552fbf182ef80bf5d7ac5937774dd6a47 /qemu-io-cmds.c | |
parent | 9898370497da3f18e0c9555b65c858eabc78ab50 (diff) |
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: Kirill Batuzov <batuzovk@ispras.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions