aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-18 17:33:03 +0800
committerGuenter Roeck <[email protected]>2022-12-01 09:20:55 -0800
commit7dec14537c5906b8bf40fd6fd6d9c3850f8df11d (patch)
tree5e7ea0218c3de1b7b2a98a4fa852f1028891313d /scripts/gdb/linux/vmalloc.py
parenta89ff5f5cc64b9fe7a992cf56988fd36f56ca82a (diff)
hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new()
As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So call it after using to avoid refcount leak. Fixes: 14513ee696a0 ("hwmon: (coretemp) Use PCI host bridge ID to identify CPU if necessary") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions