From: Alex Chiang Date: Tue, 2 Dec 2008 01:17:21 +0000 (-0700) Subject: PCI: stop leaking 'slot_name' in pci_create_slot X-Git-Tag: v2.6.27.9~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb068ac802e7f3434cbd52565dc089dc154d868;p=pandora-kernel.git 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 Signed-off-by: Jesse Barnes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed