Searched hist:"9 bbfceea12a8f145097a27d7c7267af25893c060" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/dwc3/ |
H A D | dwc3-pci.c | diff 9bbfceea12a8f145097a27d7c7267af25893c060 Mon Sep 30 04:41:45 CEST 2019 Navid Emamdoost <navid.emamdoost@gmail.com> 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>
|