From: Tony Battersby Date: Fri, 22 Aug 2014 19:53:35 +0000 (-0400) Subject: fix regression in SCSI_IOCTL_SEND_COMMAND X-Git-Tag: omap-fixes-against-v3.17-rc3~30^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba136daa3ae1e881c9f586f283fcaa164767dce;p=pandora-kernel.git fix regression in SCSI_IOCTL_SEND_COMMAND blk_rq_set_block_pc() memsets rq->cmd to 0, so it should come immediately after blk_get_request() to avoid overwriting the user-supplied CDB. Also check for failure to allocate rq. Fixes: f27b087b81b7 ("block: add blk_rq_set_block_pc()") Cc: # 3.16.x Signed-off-by: Tony Battersby Signed-off-by: Jens Axboe --- Reading git-diff-tree failed