From: Dan Carpenter Date: Thu, 13 Nov 2014 06:19:47 +0000 (+0300) Subject: usb: gadget: f_hid: use after free in hidg_alloc_inst() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~84^2~32^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828f6148e89ec051c2540400773655c0174ccaa3;p=pandora-kernel.git usb: gadget: f_hid: use after free in hidg_alloc_inst() We free "opts" on the error path and then dereference it. Fixes: 21a9476a7ba8 ('usb: gadget: hid: add configfs support') Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed