aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-10-04 12:56:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-17 17:46:30 -0400
commit2daa48729dfafd349c2a52520734de2edb9dc805 (patch)
tree9355ed48b1da6d74b8877866fb49cfb57ec579f5 /drivers/usb/input
parent2920349d438ec08d2b1f6761c8b78b8d13fd1dee (diff)
USB: fix use after free in wacom_sys.c
the following commit added a use after free http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3D3bea733ab21247290bd552dd6a2cd3049af9adef Found by coverity (cid #1441) Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: "Ping Cheng" <pingc@wacom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/input')
-rw-r--r--drivers/usb/input/wacom_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/input/wacom_sys.c b/drivers/usb/input/wacom_sys.c
index 31379b89c339..3498b893b53b 100644
--- a/drivers/usb/input/wacom_sys.c
+++ b/drivers/usb/input/wacom_sys.c
@@ -282,8 +282,8 @@ static void wacom_disconnect(struct usb_interface *intf)
282 input_unregister_device(wacom->dev); 282 input_unregister_device(wacom->dev);
283 usb_free_urb(wacom->irq); 283 usb_free_urb(wacom->irq);
284 usb_buffer_free(interface_to_usbdev(intf), 10, wacom->wacom_wac->data, wacom->data_dma); 284 usb_buffer_free(interface_to_usbdev(intf), 10, wacom->wacom_wac->data, wacom->data_dma);
285 kfree(wacom);
286 kfree(wacom->wacom_wac); 285 kfree(wacom->wacom_wac);
286 kfree(wacom);
287 } 287 }
288} 288}
289 289