]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: stop leaking 'slot_name' in pci_create_slot
authorAlex Chiang <achiang@hp.com>
Tue, 2 Dec 2008 01:17:21 +0000 (18:17 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 9 Dec 2008 22:36:03 +0000 (14:36 -0800)
commit7fc40bfe060a76fa69f609c6fa1bde356f35a0c9
treefc4180b27c193855a3324a11e29a5d0cd2aae405
parent383773176d96c7d74410e1562bb5b963e60a9738
PCI: stop leaking 'slot_name' in pci_create_slot

In pci_create_slot(), the local variable 'slot_name' is allocated by
make_slot_name(), but never freed. We never use it after passing it to
the kobject core, so we should free it upon function exit.

Cc: stable@kernel.org
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/slot.c