diff options
author | Su Hui <suhui@nfschina.com> | 2024-01-25 07:32:26 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-01-25 08:35:22 +0100 |
commit | a3bdcdd022c68942a774e8e63424cc11c85aab78 (patch) | |
tree | 339b9c7656b9ad817c0e3947ef3f9e0daae07e14 /drivers/hid/i2c-hid/i2c-hid-of.c | |
parent | HID: i2c-hid: Skip SET_POWER SLEEP for Cirque touchpad on system suspend (diff) | |
download | linux-a3bdcdd022c68942a774e8e63424cc11c85aab78.tar.xz linux-a3bdcdd022c68942a774e8e63424cc11c85aab78.zip |
HID: hidraw: fix a problem of memory leak in hidraw_release()
'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: a5623a203cff ("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>
Diffstat (limited to 'drivers/hid/i2c-hid/i2c-hid-of.c')
0 files changed, 0 insertions, 0 deletions