git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Staging: hv: mousevsc: Free allocated memory in free_input_device()
[pandora-kernel.git]
/
drivers
/
staging
/
hv
/
hv_mouse.c
diff --git
a/drivers/staging/hv/hv_mouse.c
b/drivers/staging/hv/hv_mouse.c
index
57bc4a3
..
326d972
100644
(file)
--- a/
drivers/staging/hv/hv_mouse.c
+++ b/
drivers/staging/hv/hv_mouse.c
@@
-199,6
+199,8
@@
static struct mousevsc_dev *alloc_input_device(struct hv_device *device)
static void free_input_device(struct mousevsc_dev *device)
{
WARN_ON(atomic_read(&device->ref_count) != 0);
+ kfree(device->hid_desc);
+ kfree(device->report_desc);
kfree(device);
}