Files
linux-stable-mirror/drivers
Su HuiandGreg Kroah-Hartman 53e94ec530 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:13:00 +00:00
..
2024-01-31 16:16:58 -08:00
2024-01-20 11:50:09 +01:00
2024-02-05 20:12:47 +00:00
2024-01-20 11:50:10 +01:00