]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: pci: Properly cleanup resource
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Mon, 19 Mar 2018 20:07:35 +0000 (13:07 -0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:32 +0000 (21:36 -0400)
commit7d9b58eaa92ce774ab404661bd3b159165b036f5
tree132728884232b32d5a6b69f0688000beb27844c8
parent486b5dc1dac74173ba52cb61920a14a8993f7cca
usb: dwc3: pci: Properly cleanup resource

[ Upstream commit cabdf83dadfb3d83eec31e0f0638a92dbd716435 ]

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: Sasha Levin <alexander.levin@microsoft.com>
drivers/usb/dwc3/dwc3-pci.c