diff options
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index f6a452846fab..978bfc1e0c6a 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -863,7 +863,7 @@ static void sd_rescan(struct device *dev) | |||
863 | */ | 863 | */ |
864 | static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 864 | static long sd_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
865 | { | 865 | { |
866 | struct block_device *bdev = file->f_dentry->d_inode->i_bdev; | 866 | struct block_device *bdev = file->f_path.dentry->d_inode->i_bdev; |
867 | struct gendisk *disk = bdev->bd_disk; | 867 | struct gendisk *disk = bdev->bd_disk; |
868 | struct scsi_device *sdev = scsi_disk(disk)->device; | 868 | struct scsi_device *sdev = scsi_disk(disk)->device; |
869 | 869 | ||