diff options
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 85d41eb67c0b..bc04330f3683 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, | |||
1729 | struct gendisk *disk = inode->i_bdev->bd_disk; | 1729 | struct gendisk *disk = inode->i_bdev->bd_disk; |
1730 | void __user *usermem = (void __user *) arg; | 1730 | void __user *usermem = (void __user *) arg; |
1731 | 1731 | ||
1732 | return scsi_cmd_ioctl(filp, disk->queue, disk, cmd, usermem); | 1732 | return scsi_cmd_ioctl(disk->queue, disk, filp ? filp->f_mode : 0, cmd, usermem); |
1733 | } | 1733 | } |
1734 | 1734 | ||
1735 | /* | 1735 | /* |