diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-05-31 14:43:47 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-01 13:10:41 -0600 |
commit | d9f972644606ecc2581390b43cb5a980b54c04bf (patch) | |
tree | d3d18ca37ba991b198665560eae8d24cfbacc949 /mm | |
parent | 9efc160f4bbd69b17b48edec53067537d04e62b7 (diff) | |
download | linux-d9f972644606ecc2581390b43cb5a980b54c04bf.tar.gz linux-d9f972644606ecc2581390b43cb5a980b54c04bf.tar.bz2 linux-d9f972644606ecc2581390b43cb5a980b54c04bf.zip |
bsg: Check queue type before attaching to a queue
Since BSG only supports request queues for which struct scsi_request
is the first member of their private request data, refuse to register
block layer queues for which struct scsi_request is not the first
member of their private data.
References: commit bd1599d931ca ("scsi_transport_sas: fix BSG ioctl memory corruption")
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>
Cc: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions