diff options
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index e67eef4867ba..089020e0ee5a 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -774,7 +774,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig) | |||
774 | { | 774 | { |
775 | loff_t ret; | 775 | loff_t ret; |
776 | 776 | ||
777 | mutex_lock(&file->f_dentry->d_inode->i_mutex); | 777 | mutex_lock(&file->f_path.dentry->d_inode->i_mutex); |
778 | switch (orig) { | 778 | switch (orig) { |
779 | case 0: | 779 | case 0: |
780 | file->f_pos = offset; | 780 | file->f_pos = offset; |
@@ -789,7 +789,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig) | |||
789 | default: | 789 | default: |
790 | ret = -EINVAL; | 790 | ret = -EINVAL; |
791 | } | 791 | } |
792 | mutex_unlock(&file->f_dentry->d_inode->i_mutex); | 792 | mutex_unlock(&file->f_path.dentry->d_inode->i_mutex); |
793 | return ret; | 793 | return ret; |
794 | } | 794 | } |
795 | 795 | ||