diff options
| author | Johan Hovold <johan@kernel.org> | 2016-11-01 11:40:25 +0100 |
|---|---|---|
| committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-11-18 13:54:09 +0200 |
| commit | 015105b12183556771e111e93f5266851e7c5582 (patch) | |
| tree | 5caf778885ecb98459347d979bb778b24c39018d /tools/perf/scripts/python/stackcollapse.py | |
| parent | usb: gadget: f_uac2: fix error handling at afunc_bind (diff) | |
| download | linux-015105b12183556771e111e93f5266851e7c5582.tar.gz linux-015105b12183556771e111e93f5266851e7c5582.zip | |
USB: phy: am335x-control: fix device and of_node leaks
Make sure to drop the references taken by of_parse_phandle() and
bus_find_device() before returning from am335x_get_phy_control().
Note that there is no guarantee that the devres-managed struct
phy_control will be valid for the lifetime of the sibling phy device
regardless of this change.
Fixes: 3bb869c8b3f1 ("usb: phy: Add AM335x PHY driver")
Acked-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
