diff options
-rw-r--r-- | drivers/hid/hid-debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index a331a1821e85..06e87dc77796 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c | |||
@@ -909,6 +909,7 @@ static int hid_debug_events_open(struct inode *inode, struct file *file) | |||
909 | 909 | ||
910 | if (!(list->hid_debug_buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_KERNEL))) { | 910 | if (!(list->hid_debug_buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_KERNEL))) { |
911 | err = -ENOMEM; | 911 | err = -ENOMEM; |
912 | kfree(list); | ||
912 | goto out; | 913 | goto out; |
913 | } | 914 | } |
914 | list->hdev = (struct hid_device *) inode->i_private; | 915 | list->hdev = (struct hid_device *) inode->i_private; |