diff options
Diffstat (limited to 'drivers/usb/core/devices.c')
-rw-r--r-- | drivers/usb/core/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index cbacea933b18..2c42e06f9717 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
@@ -658,7 +658,7 @@ static loff_t usb_device_lseek(struct file *file, loff_t offset, int orig) | |||
658 | { | 658 | { |
659 | loff_t ret; | 659 | loff_t ret; |
660 | 660 | ||
661 | mutex_lock(&file->f_dentry->d_inode->i_mutex); | 661 | mutex_lock(&file_inode(file)->i_mutex); |
662 | 662 | ||
663 | switch (orig) { | 663 | switch (orig) { |
664 | case 0: | 664 | case 0: |
@@ -674,7 +674,7 @@ static loff_t usb_device_lseek(struct file *file, loff_t offset, int orig) | |||
674 | ret = -EINVAL; | 674 | ret = -EINVAL; |
675 | } | 675 | } |
676 | 676 | ||
677 | mutex_unlock(&file->f_dentry->d_inode->i_mutex); | 677 | mutex_unlock(&file_inode(file)->i_mutex); |
678 | return ret; | 678 | return ret; |
679 | } | 679 | } |
680 | 680 | ||