From: Jiri Kosina Date: Wed, 21 Feb 2007 16:18:03 +0000 (+0100) Subject: HID: fix possible double-free on error path in hid parser X-Git-Tag: v2.6.21-rc3~147^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776c0e96edecf77f827a62d2a1641cc2ca479043;p=pandora-kernel.git 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: Jiri Kosina --- Reading git-diff-tree failed