aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorGreg KH <[email protected]>2008-08-21 20:47:58 +0000
committerJesse Barnes <[email protected]>2008-08-21 22:22:46 +0000
commitebca4f1bce1eb7b91a63c515db66316db9391221 (patch)
treedd65b7eb4437bca869fc1f6c792e4e43684a1f1e /lib/debugobjects.c
parentPCI: shpchp: Rename duplicate slot name N as N-1, N-2, N-M... (diff)
downloadkernel-ebca4f1bce1eb7b91a63c515db66316db9391221.tar.gz
kernel-ebca4f1bce1eb7b91a63c515db66316db9391221.zip
PCI: fix reference leak in pci_get_dev_by_id()
Alex Chiang and Matthew Wilcox pointed out that pci_get_dev_by_id() does not properly decrement the reference on the from pointer if it is present, like the documentation for the function states it will. It fixes a pretty bad leak in the hotplug core (we were leaking an entire struct pci_dev for each function of each offlined card, the first time around; subsequent onlines/offlines were ok). Cc: Matthew Wilcox <[email protected]> Cc: stable <[email protected]> Tested-by: Alex Chiang <[email protected]> Acked-by: Alex Chiang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions