Re: [PATCH] scsi: Fix more error handling in SCSI_IOCTL_SEND_COMMAND

From: Jens Axboe
Date: Mon Nov 10 2014 - 17:43:55 EST


On 2014-11-10 15:40, Tony Battersby wrote:
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@xxxxxxxxxxxxxxx>

Thanks, good catch. Might be an idea to have blk_put_request() do warn-and-return check on error pointers being passed in, just in case.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/