Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188049
b: refs/heads/master
c: 77554b4
h: refs/heads/master
i:
  188047: 18906ae
v: v3
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and Dmitry Torokhov committed Mar 10, 2010
1 parent 20bf0f2 commit 7ed74d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: c90c6a885ac9827921e8f94f3ce4360ae11148f1
refs/heads/master: 77554b4d1fac6a66d4e624a6e36c020a4f5b6b64
11 changes: 5 additions & 6 deletions trunk/drivers/input/serio/serio_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ static int serio_raw_open(struct inode *inode, struct file *file)
struct serio_raw_list *list;
int retval = 0;

lock_kernel();
retval = mutex_lock_interruptible(&serio_raw_mutex);
if (retval)
goto out_bkl;
return retval;

if (!(serio_raw = serio_raw_locate(iminor(inode)))) {
serio_raw = serio_raw_locate(iminor(inode));
if (!serio_raw) {
retval = -ENODEV;
goto out;
}
Expand All @@ -96,7 +96,8 @@ static int serio_raw_open(struct inode *inode, struct file *file)
goto out;
}

if (!(list = kzalloc(sizeof(struct serio_raw_list), GFP_KERNEL))) {
list = kzalloc(sizeof(struct serio_raw_list), GFP_KERNEL);
if (!list) {
retval = -ENOMEM;
goto out;
}
Expand All @@ -109,8 +110,6 @@ static int serio_raw_open(struct inode *inode, struct file *file)

out:
mutex_unlock(&serio_raw_mutex);
out_bkl:
unlock_kernel();
return retval;
}

Expand Down

0 comments on commit 7ed74d4

Please sign in to comment.