diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 05:37:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:50 -0500 |
commit | 33cb89940082c54f348062db2f8bab6cf8fed816 (patch) | |
tree | bf9fcca689b9843108177623e723f526c86a0d9e /drivers/usb/core | |
parent | 592ccbf9fba665031765d9bb0f6c1ede1fa62f96 (diff) |
[PATCH] struct path: convert usb
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index b5d6a79af0be..11dad22da41c 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -379,7 +379,7 @@ static loff_t default_file_lseek (struct file *file, loff_t offset, int orig) | |||
379 | { | 379 | { |
380 | loff_t retval = -EINVAL; | 380 | loff_t retval = -EINVAL; |
381 | 381 | ||
382 | mutex_lock(&file->f_dentry->d_inode->i_mutex); | 382 | mutex_lock(&file->f_path.dentry->d_inode->i_mutex); |
383 | switch(orig) { | 383 | switch(orig) { |
384 | case 0: | 384 | case 0: |
385 | if (offset > 0) { | 385 | if (offset > 0) { |
@@ -396,7 +396,7 @@ static loff_t default_file_lseek (struct file *file, loff_t offset, int orig) | |||
396 | default: | 396 | default: |
397 | break; | 397 | break; |
398 | } | 398 | } |
399 | mutex_unlock(&file->f_dentry->d_inode->i_mutex); | 399 | mutex_unlock(&file->f_path.dentry->d_inode->i_mutex); |
400 | return retval; | 400 | return retval; |
401 | } | 401 | } |
402 | 402 | ||