]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:21 +0000 (10:57 -0400)
commit310ec26b8fe2e5e7b43e5a1630b05c7fb3ffb35d
treec814c3801547184bbf4531d4106889615ae0ec21
parente5dccef0012558e89025dadbf9d902270e03aaa5
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: Paul Gortmaker <paul.gortmaker@windriver.com>
block/blk-sysfs.c