summaryrefslogtreecommitdiffstats
path: root/block/scsi_ioctl.c
diff options
context:
space:
mode:
authorJan Kara2014-10-22 15:34:21 +0200
committerJens Axboe2014-10-22 15:59:25 +0200
commit31f9690e6eaf549f3e643f6a8f7dab84fd31997a (patch)
treec31966132649fc7154b57536f6f8355251d201f1 /block/scsi_ioctl.c
parentblk-merge: recaculate segment if it isn't less than max segments (diff)
downloadkernel-qcow2-linux-31f9690e6eaf549f3e643f6a8f7dab84fd31997a.tar.gz
kernel-qcow2-linux-31f9690e6eaf549f3e643f6a8f7dab84fd31997a.tar.xz
kernel-qcow2-linux-31f9690e6eaf549f3e643f6a8f7dab84fd31997a.zip
null_blk: Cleanup error recovery in null_add_dev()
When creation of queues fails in init_driver_queues(), we free the queues. But null_add_dev() doesn't test for this failure and continues with the setup leading to strange consequences, likely oops. Fix the problem by testing whether init_driver_queues() failed and do proper error cleanup. Coverity-id: 1148005 Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/scsi_ioctl.c')
0 files changed, 0 insertions, 0 deletions