Skip to content
Commit 3e7830ce authored by Dan Carpenter's avatar Dan Carpenter Committed by Jiri Kosina
Browse files

HID: logitech-hidpp: leaks and NULL dereferences



Shift the allocation down a few lines to avoid a memory leak and also
add a check for allocation failure.

Fixes: 2f31c525 ('HID: Introduce hidpp, a module to handle Logitech hid++ devices')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 3a61e975
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment