]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cciss: initialize struct scsi_req
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jul 2017 17:32:20 +0000 (10:32 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Jul 2017 18:23:51 +0000 (12:23 -0600)
commit0e2ff11311d1d4c85dd9ad9ba4347775f628e94a
tree9da3743be15cfcbbecbff5c5f215d8b9301712f9
parentdb2d153d7a3d64618659f19e645a3351d3a732f3
cciss: initialize struct scsi_req

The changes in "block: Make most scsi_req_init() calls implicit" mean
that every driver that supports the generic scsi ioctls needs to
call scsi_req_init on newly allocated requests, but that commit didn't
add the call to the ccіss driver.  Fix that to avoid crashes when
udev issues SG_IO commands.

Fixes: ca18d6f7 ("block: Make most scsi_req_init() calls implicit")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/cciss.c