]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block, blk-sysfs: Fix an err return path in blk_register_queue()
authorLiu Yuan <tailai.ly@taobao.com>
Tue, 19 Apr 2011 11:47:58 +0000 (13:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 23:04:34 +0000 (16:04 -0700)
commit3984c935c54a61eb6d12bcde228d9d5814f53f19
treefd307ebe529e9fab514010f71fa6c56659c0b7f5
parente6fe8008a04250492fb38c84e046cf828ad5546a
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