diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-05-31 23:43:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-01 21:10:44 +0200 |
commit | 73d17701db503382eeed03afb3a6c39ec4d9a5c7 (patch) | |
tree | 0387060b46a8f75a3701f8006588cb1295e0bff6 /fs/nfsd/blocklayout.c | |
parent | pktcdvd: Check queue type before attaching to a queue (diff) | |
download | linux-73d17701db503382eeed03afb3a6c39ec4d9a5c7.tar.xz linux-73d17701db503382eeed03afb3a6c39ec4d9a5c7.zip |
cdrom: Check SCSI passthrough support before reading audio
The CDROMREADAUDIO ioctl uses SCSI passthrough when the .disk
pointer has been set in struct cdrom_device_info. Hence check
whether SCSI passthrough is supported before submitting a SCSI
command. Note: both the ide-cd and sr drivers set the disk
pointer in struct cdrom_device_info but neither the pcd nor
the gdrom driver sets that pointer.
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>
Cc: linux-block@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions