summaryrefslogtreecommitdiff
path: root/drivers/block/skd_s1120.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-01-02 11:39:47 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-17 13:21:19 +0100
commit944723bf84d3ff53d09f949d9a4a659c26b53ccf (patch)
treed349094e7c47f02a2f947c5fd8b3c3728186b7dd /drivers/block/skd_s1120.h
parent86d408d10efd1d6161f456ddba59cb2a0fb5f763 (diff)
pktcdvd: Fix pkt_setup_dev() error path
commit 5a0ec388ef0f6e33841aeb810d7fa23f049ec4cd upstream. Commit 523e1d399ce0 ("block: make gendisk hold a reference to its queue") modified add_disk() and disk_release() but did not update any of the error paths that trigger a put_disk() call after disk->queue has been assigned. That introduced the following behavior in the pktcdvd driver if pkt_new_dev() fails: Kernel BUG at 00000000e98fd882 [verbose debug info unavailable] Since disk_release() calls blk_put_queue() anyway if disk->queue != NULL, fix this by removing the blk_cleanup_queue() call from the pkt_setup_dev() error path. Fixes: commit 523e1d399ce0 ("block: make gendisk hold a reference to its queue") Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Tejun Heo <tj@kernel.org> Cc: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/block/skd_s1120.h')
0 files changed, 0 insertions, 0 deletions