Skip to content
Commit 776c0e96 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: fix possible double-free on error path in hid parser



Freeing of device->collection is properly done in hid_free_device() (as
this function is supposed to free all the device resources and could be
called from transport specific code, e.g. usb_hid_configure()).

Remove all kfree() calls preceeding the hid_free_device() call.

Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 4330eb2e
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