linux-stable/drivers/hid/usbhid
Anirudh Rayabharam 965147067f HID: usbhid: free raw_report buffers in usbhid_stop
commit f7744fa16b upstream.

Free the unsent raw_report buffers when the device is removed.

Fixes a memory leak reported by syzbot at:
https://syzkaller.appspot.com/bug?id=7b4fa7cb1a7c2d3342a2a8a6c53371c8c418ab47

Reported-by: syzbot+47b26cd837ececfc666d@syzkaller.appspotmail.com
Tested-by: syzbot+47b26cd837ececfc666d@syzkaller.appspotmail.com
Signed-off-by: Anirudh Rayabharam <mail@anirudhrb.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-06 15:42:39 +02:00
..
Kconfig
Makefile
hid-core.c HID: usbhid: free raw_report buffers in usbhid_stop 2021-10-06 15:42:39 +02:00
hid-pidff.c HID: pidff: fix error return code in hid_pidff_init() 2021-06-10 13:37:04 +02:00
hiddev.c HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage() 2020-09-03 11:27:10 +02:00
usbhid.h HID: usbhid: Fix race between usbhid_close() and usbhid_stop() 2020-05-14 07:58:24 +02:00
usbkbd.c
usbmouse.c