git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4a162
)
fix regression in SCSI_IOCTL_SEND_COMMAND
author
Tony Battersby
<tonyb@cybernetics.com>
Fri, 22 Aug 2014 19:53:35 +0000
(15:53 -0400)
committer
Jens Axboe
<axboe@fb.com>
Fri, 22 Aug 2014 20:04:33 +0000
(15:04 -0500)
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: <stable@vger.kernel.org> # 3.16.x
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/scsi_ioctl.c
patch
|
blob
|
history
diff --cc
block/scsi_ioctl.c
Simple merge