driver core: fix memory leak on one error path in bus_register()
authorJike Song <albcamus@gmail.com>
Thu, 15 Jul 2010 09:43:54 +0000 (17:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:35 +0000 (13:53 -0700)
commit600c20f34f645adf7884277302b10601583aa7d5
treeb37760bb8e867d31240cdaf512b2ab5363bf3c86
parentc462e8cd57869a81223c5cad2d5a61b491634229
driver core: fix memory leak on one error path in bus_register()

Reported-by: huangweibing@gmail.com
Signed-off-by: Jike Song <albcamus@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c