diff options
Diffstat (limited to 'drivers/scsi/dpt_i2o.c')
-rw-r--r-- | drivers/scsi/dpt_i2o.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index b4f6c9a84e71..b6e2700ec1c6 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c | |||
@@ -2161,7 +2161,7 @@ static long adpt_unlocked_ioctl(struct file *file, uint cmd, ulong arg) | |||
2161 | struct inode *inode; | 2161 | struct inode *inode; |
2162 | long ret; | 2162 | long ret; |
2163 | 2163 | ||
2164 | inode = file->f_dentry->d_inode; | 2164 | inode = file_inode(file); |
2165 | 2165 | ||
2166 | mutex_lock(&adpt_mutex); | 2166 | mutex_lock(&adpt_mutex); |
2167 | ret = adpt_ioctl(inode, file, cmd, arg); | 2167 | ret = adpt_ioctl(inode, file, cmd, arg); |
@@ -2177,7 +2177,7 @@ static long compat_adpt_ioctl(struct file *file, | |||
2177 | struct inode *inode; | 2177 | struct inode *inode; |
2178 | long ret; | 2178 | long ret; |
2179 | 2179 | ||
2180 | inode = file->f_dentry->d_inode; | 2180 | inode = file_inode(file); |
2181 | 2181 | ||
2182 | mutex_lock(&adpt_mutex); | 2182 | mutex_lock(&adpt_mutex); |
2183 | 2183 | ||