diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-19 17:50:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-19 17:50:15 -0400 |
commit | 2d8620cb880c796c9a9b59fe8d4ff37d726acfea (patch) | |
tree | 28ec4a32732c76bb7395c9a3d99f2c70c409b013 /drivers/hid | |
parent | fe2fd6cc346cc7199a52250e8fb594852b2a321b (diff) | |
parent | 96fe2ab830d7dffee1b3d8abf27ced4d7d5765e7 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
HID: fix waitqueue usage in hiddev
HID: fix incorrect free in hiddev
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/usbhid/hiddev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c index 4940e4d70c2d..1f5b5d4c3c34 100644 --- a/drivers/hid/usbhid/hiddev.c +++ b/drivers/hid/usbhid/hiddev.c | |||
@@ -306,7 +306,7 @@ static int hiddev_open(struct inode *inode, struct file *file) | |||
306 | return 0; | 306 | return 0; |
307 | bail: | 307 | bail: |
308 | file->private_data = NULL; | 308 | file->private_data = NULL; |
309 | kfree(list->hiddev); | 309 | kfree(list); |
310 | return res; | 310 | return res; |
311 | } | 311 | } |
312 | 312 | ||
@@ -323,7 +323,7 @@ static ssize_t hiddev_write(struct file * file, const char __user * buffer, size | |||
323 | */ | 323 | */ |
324 | static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t count, loff_t *ppos) | 324 | static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t count, loff_t *ppos) |
325 | { | 325 | { |
326 | DECLARE_WAITQUEUE(wait, current); | 326 | DEFINE_WAIT(wait); |
327 | struct hiddev_list *list = file->private_data; | 327 | struct hiddev_list *list = file->private_data; |
328 | int event_size; | 328 | int event_size; |
329 | int retval; | 329 | int retval; |