]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 13 Dec 2008 23:29:32 +0000 (15:29 -0800)
commitdeb068ac802e7f3434cbd52565dc089dc154d868
tree4be336cf299d386aa58e26e90a11f9c3675e5ccc
parent053abaffaa8e536b489ff66b9882a9a60acf3025
PCI: stop leaking 'slot_name' in pci_create_slot

commit 3b5dd45e947ecd21491e1658fba7bb4bc4a54995 upstream.

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.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/slot.c