[PATCH] switch scsi_cmd_ioctl() to passing fmode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2007-08-27 15:38:10 -04:00
parent e915e872ed
commit 74f3c8aff3
10 changed files with 20 additions and 18 deletions

View File

@@ -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;