commit | cd93ff92e1d71a2f13447ecc36e17e74bf897ef4 | [log] [tgz] |
---|---|---|
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | Mon Mar 19 13:07:35 2018 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 24 09:34:11 2018 +0200 |
tree | a1f97c13c5582c91310e9e427f141fc4cf58d8bd | |
parent | 73300bd1fdedcb4f0e78aab61737bda5bf7b0c24 [diff] |
usb: dwc3: pci: Properly cleanup resource commit cabdf83dadfb3d83eec31e0f0638a92dbd716435 upstream. Platform device is allocated before adding resources. Make sure to properly cleanup on error case. Cc: <stable@vger.kernel.org> Fixes: f1c7e7108109 ("usb: dwc3: convert to pcim_enable_device()") Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>