Home
last modified time | relevance | path

Searched hist:bc5519c18a32ce855bb51b9f5eceb77a9489d080 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/scsi/
H A Dsr.cdiff bc5519c18a32ce855bb51b9f5eceb77a9489d080 Wed Mar 23 01:22:42 CET 2022 Kevin Groeneveld <kgroeneveld@lenbrook.com> scsi: sr: Fix typo in CDROM(CLOSETRAY|EJECT) handling

Commit 2e27f576abc6 ("scsi: scsi_ioctl: Call scsi_cmd_ioctl() from
scsi_ioctl()") seems to have a typo as it is checking ret instead of cmd in
the if statement checking for CDROMCLOSETRAY and CDROMEJECT. This changes
the behaviour of these ioctls as the cdrom_ioctl handling of these is more
restrictive than the scsi_ioctl version.

Link: https://lore.kernel.org/r/20220323002242.21157-1-kgroeneveld@lenbrook.com
Fixes: 2e27f576abc6 ("scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Groeneveld <kgroeneveld@lenbrook.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>