summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/via-cuda.c
diff options
context:
space:
mode:
authorBart Van Assche2017-05-31 23:43:50 +0200
committerJens Axboe2017-06-01 21:10:46 +0200
commit30181faae37fa80d3aa73672e5df5f2a5b8dea0a (patch)
tree3481f39f48f01bf0f264956ae97477f195a61b49 /drivers/macintosh/via-cuda.c
parentcdrom: Check SCSI passthrough support before reading audio (diff)
downloadkernel-qcow2-linux-30181faae37fa80d3aa73672e5df5f2a5b8dea0a.tar.gz
kernel-qcow2-linux-30181faae37fa80d3aa73672e5df5f2a5b8dea0a.tar.xz
kernel-qcow2-linux-30181faae37fa80d3aa73672e5df5f2a5b8dea0a.zip
nfsd: Check queue type before submitting a SCSI request
Since using scsi_req() is only allowed against request queues for which struct scsi_request is the first member of their private request data, refuse to submit SCSI commands against a queue for which this is not the case. References: commit 82ed4db499b8 ("block: split scsi_request out of struct request") Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: J. Bruce Fields <bfields@redhat.com> Cc: Jeff Layton <jlayton@poochiereds.net> Cc: Omar Sandoval <osandov@fb.com> Cc: linux-nfs@vger.kernel.org Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/macintosh/via-cuda.c')
0 files changed, 0 insertions, 0 deletions