diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-09-03 01:16:41 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 15:47:12 +0400 |
commit | e915e872ed921d707bc32b3f2184d43abfa8c9e2 (patch) | |
tree | 698142e0a56622c3a3c0740522537dbff703732a /drivers/scsi/sg.c | |
parent | 5842e51ff2e8d660756248db80ad24e4f41977d9 (diff) | |
download | linux-e915e872ed921d707bc32b3f2184d43abfa8c9e2.tar.xz |
[PATCH] switch sg_scsi_ioctl() to passing fmode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 93bd59a1ed79..9adf35bd8b56 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1059,7 +1059,7 @@ sg_ioctl(struct inode *inode, struct file *filp, if (sg_allow_access(filp, &opcode)) return -EPERM; } - return sg_scsi_ioctl(filp, sdp->device->request_queue, NULL, p); + return sg_scsi_ioctl(sdp->device->request_queue, NULL, filp->f_mode, p); case SG_SET_DEBUG: result = get_user(val, ip); if (result) |