]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 19 Apr 2011 11:51:53 +0000 (13:51 +0200)
commited5302d3c25006a9edc7a7fbea97a30483f89ef7
tree7322cdd2607d7d8ffaf8a6539ca001771928363f
parentd350e6b6e819df0a383ff34465720bfaa0f91c79
block, blk-sysfs: Fix an err return path in blk_register_queue()

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

Cc: stable@kernel.org
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-sysfs.c