Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264777
b: refs/heads/master
c: 1a89623
h: refs/heads/master
i:
  264775: f0b0c34
v: v3
  • Loading branch information
Amit Nagal authored and Jiri Kosina committed Sep 7, 2011
1 parent 6a3dd01 commit 1dc0a0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: ba623a774f5b529f89b3d63e0837df52e16ffb3b
refs/heads/master: 1a8962317f494ad858971fc08ba035eff658a5c9
3 changes: 2 additions & 1 deletion trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ static int hidraw_open(struct inode *inode, struct file *file)

mutex_lock(&minors_lock);
if (!hidraw_table[minor]) {
kfree(list);
err = -ENODEV;
goto out_unlock;
}
Expand All @@ -285,6 +284,8 @@ static int hidraw_open(struct inode *inode, struct file *file)
out_unlock:
mutex_unlock(&minors_lock);
out:
if (err < 0)
kfree(list);
return err;

}
Expand Down

0 comments on commit 1dc0a0d

Please sign in to comment.