diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-27 21:38:10 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 13:47:14 +0200 |
commit | 74f3c8aff36ad6552ea609c8b20bfd588fa16f38 (patch) | |
tree | c046823751971ff37b66499282ca2b2e263cc71a /drivers/scsi/st.c | |
parent | [PATCH] switch sg_scsi_ioctl() to passing fmode_t (diff) | |
download | linux-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.tar.xz 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/scsi/st.c')
-rw-r--r-- | drivers/scsi/st.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) !capable(CAP_SYS_RAWIO)) i = -EPERM; else - i = scsi_cmd_ioctl(file, STp->disk->queue, - STp->disk, cmd_in, p); + i = scsi_cmd_ioctl(STp->disk->queue, STp->disk, + file->f_mode, cmd_in, p); if (i != -ENOTTY) return i; break; |