summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2008-06-24 14:45:27 +0200
committerJiri Kosina <jkosina@suse.cz>2008-07-23 15:25:21 +0200
commit4db1c62c9991e62b441672db7f227e722776adc4 (patch)
treefba1946ddedc94c81423fe07cf1d8061794d55fa /drivers/hid
parentf472f80034ae5d0be7d7196c7e65d0ca8890afb4 (diff)
HID: fix memory leak in hidraw_release
hidraw_release() forgot to free the linked list structure, causing memory leak. Reported-by: Juan Marcos Diez Esteban <juan_m_diez@yahoo.es> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hidraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c
index 0c6b4d4e7e2..8ecd7752510 100644
--- a/drivers/hid/hidraw.c
+++ b/drivers/hid/hidraw.c
@@ -211,6 +211,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
kfree(list->hidraw);
}
+ kfree(list);
+
return 0;
}