block, blk-sysfs: Fix an err return path in blk_register_queue()
commit343b1a2525647d9035710c03042fe7e27b91a951
authorLiu Yuan <tailai.ly@taobao.com>
Tue, 19 Apr 2011 11:47:58 +0000 (19 13:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:32 +0000 (2 09:19 -0700)
treef98d758e197c8acc884d3958b7efb83f2b0cd925
parentf82e213b907b6cd6113e2414f92271a0b1ecb90f
block, blk-sysfs: Fix an err return path in blk_register_queue()

commit ed5302d3c25006a9edc7a7fbea97a30483f89ef7 upstream.

We do not call blk_trace_remove_sysfs() in err return path
if kobject_add() fails. This path fixes it.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/blk-sysfs.c