diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-29 21:41:45 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2019-10-27 08:58:45 +0200 |
commit | 9bbfceea12a8f145097a27d7c7267af25893c060 (patch) | |
tree | db49d1c0ee9ea11faa6691fc5daaa551143a1a95 /drivers/mfd/wm8994-irq.c | |
parent | 1c20c89b0421b52b2417bb0f62a611bc669eda1d (diff) |
usb: dwc3: pci: prevent memory leak in dwc3_pci_probe
In dwc3_pci_probe a call to platform_device_alloc allocates a device
which is correctly put in case of error except one case: when the call to
platform_device_add_properties fails it directly returns instead of
going to error handling. This commit replaces return with the goto.
Fixes: 1a7b12f69a94 ("usb: dwc3: pci: Supply device properties via driver data")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-irq.c')
0 files changed, 0 insertions, 0 deletions