aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ioctl.c b/block/ioctl.c
index 9fddb99c3efb..f6962b64660e 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -290,7 +290,7 @@ int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
290 ENOIOCTLCMD for unknown ioctls. */ 290 ENOIOCTLCMD for unknown ioctls. */
291long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) 291long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
292{ 292{
293 struct block_device *bdev = file->f_dentry->d_inode->i_bdev; 293 struct block_device *bdev = file->f_path.dentry->d_inode->i_bdev;
294 struct gendisk *disk = bdev->bd_disk; 294 struct gendisk *disk = bdev->bd_disk;
295 int ret = -ENOIOCTLCMD; 295 int ret = -ENOIOCTLCMD;
296 if (disk->fops->compat_ioctl) { 296 if (disk->fops->compat_ioctl) {