scsi: Fix more error handling in SCSI_IOCTL_SEND_COMMAND
authorTony Battersby <tonyb@cybernetics.com>
Mon, 10 Nov 2014 22:40:02 +0000 (17:40 -0500)
committerJens Axboe <axboe@fb.com>
Mon, 10 Nov 2014 22:41:47 +0000 (15:41 -0700)
Fix an error path in SCSI_IOCTL_SEND_COMMAND that calls
blk_put_request(rq) on an invalid IS_ERR(rq) pointer.

Fixes: a492f075450f ("block,scsi: fixup blk_get_request dead queue scenarios")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Jens Axboe <axboe@fb.com>

No differences found