summaryrefslogtreecommitdiffstats
path: root/drivers/block/ub.c
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/block/ub.c
parente915e872ed921d707bc32b3f2184d43abfa8c9e2 (diff)
downloadop-kernel-dev-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.zip
op-kernel-dev-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.tar.gz
[PATCH] switch scsi_cmd_ioctl() to passing fmode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r--drivers/block/ub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c
index 85d41eb..bc04330 100644
--- a/drivers/block/ub.c
+++ b/drivers/block/ub.c
@@ -1729,7 +1729,7 @@ static int ub_bd_ioctl(struct inode *inode, struct file *filp,
struct gendisk *disk = inode->i_bdev->bd_disk;
void __user *usermem = (void __user *) arg;
- return scsi_cmd_ioctl(filp, disk->queue, disk, cmd, usermem);
+ return scsi_cmd_ioctl(disk->queue, disk, filp ? filp->f_mode : 0, cmd, usermem);
}
/*
OpenPOWER on IntegriCloud