HID: fix possible double-free on error path in hid parser
authorJiri Kosina <jkosina@suse.cz>
Wed, 21 Feb 2007 16:18:03 +0000 (17:18 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 1 Mar 2007 08:52:43 +0000 (09:52 +0100)
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: Jiri Kosina <jkosina@suse.cz>

No differences found