diff options
author | Krzysztof Kozlowski <[email protected]> | 2024-08-14 11:39:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-08-22 17:34:26 +0800 |
commit | ddfcfeba891064b88bb844208b43bef2ef970f0c (patch) | |
tree | 523c08ee901098976cdac1d310f628661e265a17 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 72fca8371f205d654f95b09cd023a71fd5307041 (diff) |
usb: dwc3: st: fix probed platform device ref count on probe error path
The probe function never performs any paltform device allocation, thus
error path "undo_platform_dev_alloc" is entirely bogus. It drops the
reference count from the platform device being probed. If error path is
triggered, this will lead to unbalanced device reference counts and
premature release of device resources, thus possible use-after-free when
releasing remaining devm-managed resources.
Fixes: f83fca0707c6 ("usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC")
Cc: [email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions