diff options
| author | Wei Yongjun <[email protected]> | 2020-05-07 05:13:32 +0000 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-05-09 08:05:08 +0000 |
| commit | e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b (patch) | |
| tree | 63dc04d8dce549ac63fe49102013173413c3c862 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | usb: gadget: legacy: fix redundant initialization warnings (diff) | |
| download | kernel-e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b.tar.gz kernel-e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b.zip | |
usb: gadget: legacy: fix error return code in cdc_bind()
If 'usb_otg_descriptor_alloc()' fails, we must return a
negative error code -ENOMEM, not 0.
Fixes: ab6796ae9833 ("usb: gadget: cdc2: allocate and init otg descriptor by otg capabilities")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions
