diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-09-29 18:54:52 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-04 17:39:34 (GMT) |
commit | ea8646b92feea6de86dae44a879364758b6a4dcb (patch) | |
tree | 0c614cbf529cec133bbdd9de3fd4688304735de0 /drivers/staging/hv | |
parent | 61c4fb47cffa5cd6ff52fa1d3fca25547bcd76ad (diff) | |
download | linux-ea8646b92feea6de86dae44a879364758b6a4dcb.tar.xz |
Staging: hv: mousevsc: Free allocated memory in free_input_device()
Free all allocated memory in free_input_device().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r-- | drivers/staging/hv/hv_mouse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 57bc4a3..326d972 100644 --- 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); } |