projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f472f80
)
HID: fix memory leak in hidraw_release
author
Jiri Kosina
<jkosina@suse.cz>
Tue, 24 Jun 2008 12:45:27 +0000
(14:45 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 23 Jul 2008 13:25:21 +0000
(15:25 +0200)
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>
drivers/hid/hidraw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hidraw.c
b/drivers/hid/hidraw.c
index 0c6b4d4e7e2700ee9135d2729b8c388f7d8c6118..8ecd775251039c32ddffb23cb489f55846c0c73f 100644
(file)
--- 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;
}