usb: dwc3: Free resource immediately after use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Mar 2019 15:17:37 +0000 (17:17 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:48 +0000 (09:13 +0300)
commit75ecb9dd56a7c360ed487ee809d8e4a026fd7152
tree565d58b7d09b2e0a93f47478cfd9b2ffbb1e9be7
parentc0c61471ef8664d8c54c53344efd26e180410821
usb: dwc3: Free resource immediately after use

When we read an array of integers from device properties,
the temporary buffer is allocated.

However, in case of dwc3_set_incr_burst_type() it's not freed.
Free allocated buffer immediately after use.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c