diff options
Diffstat (limited to 'drivers/scsi/csiostor/csio_init.c')
-rw-r--r-- | drivers/scsi/csiostor/csio_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index b42cbbd3d92d..c323b2030afa 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c | |||
@@ -71,7 +71,7 @@ static ssize_t | |||
71 | csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | 71 | csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
72 | { | 72 | { |
73 | loff_t pos = *ppos; | 73 | loff_t pos = *ppos; |
74 | loff_t avail = file->f_path.dentry->d_inode->i_size; | 74 | loff_t avail = file_inode(file)->i_size; |
75 | unsigned int mem = (uintptr_t)file->private_data & 3; | 75 | unsigned int mem = (uintptr_t)file->private_data & 3; |
76 | struct csio_hw *hw = file->private_data - mem; | 76 | struct csio_hw *hw = file->private_data - mem; |
77 | 77 | ||