diff options
| author | Yang Yingliang <[email protected]> | 2022-12-30 06:54:27 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-06 08:12:31 +0000 |
| commit | 1a5a23b9bdf6bde0e5185ca834ff6e806cc2aaaf (patch) | |
| tree | ebf88ae91982b7158728a25f4f239f9f64329a0a /tools/perf/scripts/python/check-perf-trace.py | |
| parent | usb: fotg210: fix OTG-only build (diff) | |
| download | kernel-1a5a23b9bdf6bde0e5185ca834ff6e806cc2aaaf.tar.gz kernel-1a5a23b9bdf6bde0e5185ca834ff6e806cc2aaaf.zip | |
usb: fotg210-udc: fix error return code in fotg210_udc_probe()
After commit 5f217ccd520f ("fotg210-udc: Support optional external PHY"),
the error code is re-assigned to 0 in fotg210_udc_probe(), if allocate or
map memory fails after the assignment, it can't return an error code. Set
the error code to -ENOMEM to fix this problem.
Fixes: 5f217ccd520f ("fotg210-udc: Support optional external PHY")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
