aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorTony Battersby <[email protected]>2014-08-22 15:53:35 -0400
committerJens Axboe <[email protected]>2014-08-22 15:04:33 -0500
commit2ba136daa3ae1e881c9f586f283fcaa164767dce (patch)
treee10d432b6e8fe38d768aa3f9ba3c136ff9756ad7 /net/lapb/lapb_subr.c
parent6f4a16266fb3e58cd3e200eab51d2220ef92d604 (diff)
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: <[email protected]> # 3.16.x Signed-off-by: Tony Battersby <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions