diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-05-07 05:13:32 +0000 |
|---|---|---|
| committer | blacksuan19 <i@blacksuan19.me> | 2020-05-20 18:36:08 +0800 |
| commit | 62001eecb2bec1f6abdd981f2a542d1fa1302bbf (patch) | |
| tree | 4387114420405a572a90520e964d1b5b1a658959 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 5175966ad0f734ca4dc1fa12b0d1d05c6ba4e664 (diff) | |
usb: gadget: legacy: fix error return code in cdc_bind()
commit e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b upstream.
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
