From: Mian Yousaf Kaukab Date: Fri, 9 Jan 2015 12:39:05 +0000 (+0100) Subject: usb: dwc2: gadget: fix fifo allocation leak X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4556e12c9cf732343224308866dad2a12887dcd6;p=pandora-kernel.git usb: dwc2: gadget: fix fifo allocation leak When selecting different alt setting, s3c_hsotg_ep_enable can be called with fifo already allocated. Allocate fifo again only if required and after deallocating the previous fifo. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed