Files
linux-stable-mirror/drivers/hid
Su HuiandGreg Kroah-Hartman 54a55b6322 HID: hidraw: fix a problem of memory leak in hidraw_release()
[ Upstream commit a3bdcdd022 ]

'struct hidraw_list' is a circular queue whose head can be smaller than
tail. Using 'list->tail != list->head' to release all memory that should
be released.

Fixes: a5623a203c ("HID: hidraw: fix memory leak in hidraw_release()")
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:14:34 +00:00
..
2023-04-13 16:16:04 +02:00
2023-08-14 11:43:57 +02:00
2023-08-14 11:43:57 +02:00