Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100277
b: refs/heads/master
c: 702e57d
h: refs/heads/master
i:
  100275: 3f58ea0
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 206c705 commit 726fd86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72b67048f5dac18fd6494e3d3bff7e54840e8761
refs/heads/master: 702e57d9ef7002f8d362faa6ddebc59e6d43fa05
3 changes: 3 additions & 0 deletions trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/major.h>
#include <linux/hid.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>

#include <linux/hidraw.h>

Expand Down Expand Up @@ -157,6 +158,7 @@ static int hidraw_open(struct inode *inode, struct file *file)
struct hidraw_list *list;
int err = 0;

lock_kernel();
if (!(list = kzalloc(sizeof(struct hidraw_list), GFP_KERNEL))) {
err = -ENOMEM;
goto out;
Expand All @@ -183,6 +185,7 @@ static int hidraw_open(struct inode *inode, struct file *file)
out_unlock:
spin_unlock(&minors_lock);
out:
unlock_kernel();
return err;

}
Expand Down

0 comments on commit 726fd86

Please sign in to comment.