PCI hotplug: fix memory leaks
authorJiri Slaby <jslaby@suse.cz>
Wed, 6 Jan 2010 16:47:56 +0000 (17:47 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:16:57 +0000 (16:16 -0800)
commit6fcaf17ac7a512227112ac81c0e1a5862bab57a6
treea238d8a279f7fbc742b606b58b421ea2ea297403
parent3b7a17fcdae532d29dffab9d564a28be08960988
PCI hotplug: fix memory leaks

Stanse found a cut&pasted memory leak in pciehp_queue_pushbutton_work
and shpchp_queue_pushbutton_work. info is not freed/assigned on all
paths. Fix that.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/shpchp_ctrl.c