diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-27 15:38:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:47:14 -0400 |
commit | 74f3c8aff36ad6552ea609c8b20bfd588fa16f38 (patch) | |
tree | c046823751971ff37b66499282ca2b2e263cc71a /drivers/scsi | |
parent | e915e872ed921d707bc32b3f2184d43abfa8c9e2 (diff) |
[PATCH] switch scsi_cmd_ioctl() to passing fmode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/sd.c | 3 | ||||
-rw-r--r-- | drivers/scsi/st.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 202c1ed9abd7..5d74413f591a 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -775,7 +775,8 @@ static int sd_ioctl(struct inode * inode, struct file * filp, | |||
775 | case SCSI_IOCTL_GET_BUS_NUMBER: | 775 | case SCSI_IOCTL_GET_BUS_NUMBER: |
776 | return scsi_ioctl(sdp, cmd, p); | 776 | return scsi_ioctl(sdp, cmd, p); |
777 | default: | 777 | default: |
778 | error = scsi_cmd_ioctl(filp, disk->queue, disk, cmd, p); | 778 | error = scsi_cmd_ioctl(disk->queue, disk, |
779 | filp ? filp->f_mode : 0, cmd, p); | ||
779 | if (error != -ENOTTY) | 780 | if (error != -ENOTTY) |
780 | return error; | 781 | return error; |
781 | } | 782 | } |
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 5c28d08f18f4..8dffac9f3419 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -3567,8 +3567,8 @@ static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg) | |||
3567 | !capable(CAP_SYS_RAWIO)) | 3567 | !capable(CAP_SYS_RAWIO)) |
3568 | i = -EPERM; | 3568 | i = -EPERM; |
3569 | else | 3569 | else |
3570 | i = scsi_cmd_ioctl(file, STp->disk->queue, | 3570 | i = scsi_cmd_ioctl(STp->disk->queue, STp->disk, |
3571 | STp->disk, cmd_in, p); | 3571 | file->f_mode, cmd_in, p); |
3572 | if (i != -ENOTTY) | 3572 | if (i != -ENOTTY) |
3573 | return i; | 3573 | return i; |
3574 | break; | 3574 | break; |