summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-27 15:38:10 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:47:14 -0400
commit74f3c8aff36ad6552ea609c8b20bfd588fa16f38 (patch)
treec046823751971ff37b66499282ca2b2e263cc71a /drivers/cdrom
parente915e872ed921d707bc32b3f2184d43abfa8c9e2 (diff)
downloadblackbird-op-linux-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.tar.gz
blackbird-op-linux-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.zip
[PATCH] switch scsi_cmd_ioctl() to passing fmode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/cdrom')
-rw-r--r--drivers/cdrom/cdrom.c2
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,
/*
* Try the generic SCSI command ioctl's first.
*/
- ret = scsi_cmd_ioctl(file, disk->queue, disk, cmd, argp);
+ ret = scsi_cmd_ioctl(disk->queue, disk, file ? file->f_mode : 0, cmd, argp);
if (ret != -ENOTTY)
return ret;
OpenPOWER on IntegriCloud