usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]
authorYoung Xiao <92siuyang@gmail.com>
Tue, 28 May 2019 12:17:54 +0000 (20:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:54:34 +0000 (09:54 +0200)
commit2342af2c05886ddb76a1ee9c460b4d95ebacf8ae
tree66f4ded997c0b0c54032d6835dfeb807620095f7
parentd9196717808f91c7bfd127965bfe90784742941d
usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]

[ Upstream commit 62fd0e0a24abeebe2c19fce49dd5716d9b62042d ]

There is no deallocation of fusb300->ep[i] elements, allocated at
fusb300_probe.

The patch adds deallocation of fusb300->ep array elements.

Signed-off-by: Young Xiao <92siuyang@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/fusb300_udc.c