diff options
Diffstat (limited to 'drivers/cdrom/cdrom.c')
-rw-r--r-- | drivers/cdrom/cdrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 4feefa622aed..e286eb5d1f6a 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -2672,7 +2672,7 @@ int cdrom_ioctl(struct file * file, struct cdrom_device_info *cdi, | |||
2672 | /* | 2672 | /* |
2673 | * Try the generic SCSI command ioctl's first. | 2673 | * Try the generic SCSI command ioctl's first. |
2674 | */ | 2674 | */ |
2675 | ret = scsi_cmd_ioctl(file, disk->queue, disk, cmd, argp); | 2675 | ret = scsi_cmd_ioctl(disk->queue, disk, file ? file->f_mode : 0, cmd, argp); |
2676 | if (ret != -ENOTTY) | 2676 | if (ret != -ENOTTY) |
2677 | return ret; | 2677 | return ret; |
2678 | 2678 | ||