commit | 4556e12c9cf732343224308866dad2a12887dcd6 | [log] [tgz] |
---|---|---|
author | Mian Yousaf Kaukab <yousaf.kaukab@intel.com> | Fri Jan 09 13:39:05 2015 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jan 12 15:34:36 2015 -0600 |
tree | 08fe62ac833983c05a423e9cc0061cfa0e27914c | |
parent | ca4c55ad89edb54b1eb04fe2d4c6915c9f8d69b9 [diff] |
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 <r.baldyga@samsung.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>