Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

USB HID: fix memory leak of usbhid_device

Add forgotten freeing of usbhid_device structure.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>

+2
+2
drivers/hid/usbhid/hid-core.c
··· 877 877 usb_free_urb(usbhid->urbin); 878 878 usb_free_urb(usbhid->urbout); 879 879 usb_free_urb(usbhid->urbctrl); 880 + kfree(usbhid); 880 881 fail_no_usbhid: 881 882 hid_free_buffers(dev, hid); 882 883 hid_free_device(hid); ··· 913 912 usb_free_urb(usbhid->urbin); 914 913 usb_free_urb(usbhid->urbctrl); 915 914 usb_free_urb(usbhid->urbout); 915 + kfree(usbhid); 916 916 917 917 hid_free_buffers(hid_to_usb_dev(hid), hid); 918 918 hid_free_device(hid);