Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185342
b: refs/heads/master
c: f9de332
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent c61df5b commit 40d9972
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 063e20eb980f281d8456c3b48f146107f5cb2338
refs/heads/master: f9de332ebf9df71892d52f7eb64af101a647349f
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static loff_t usb_device_lseek(struct file *file, loff_t offset, int orig)
{
loff_t ret;

lock_kernel();
mutex_lock(&file->f_dentry->d_inode->i_mutex);

switch (orig) {
case 0:
Expand All @@ -691,7 +691,7 @@ static loff_t usb_device_lseek(struct file *file, loff_t offset, int orig)
ret = -EINVAL;
}

unlock_kernel();
mutex_unlock(&file->f_dentry->d_inode->i_mutex);
return ret;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static loff_t usbdev_lseek(struct file *file, loff_t offset, int orig)
{
loff_t ret;

lock_kernel();
mutex_lock(&file->f_dentry->d_inode->i_mutex);

switch (orig) {
case 0:
Expand All @@ -138,7 +138,7 @@ static loff_t usbdev_lseek(struct file *file, loff_t offset, int orig)
ret = -EINVAL;
}

unlock_kernel();
mutex_unlock(&file->f_dentry->d_inode->i_mutex);
return ret;
}

Expand Down

0 comments on commit 40d9972

Please sign in to comment.