diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-05-07 05:13:23 +0000 |
|---|---|---|
| committer | blacksuan19 <i@blacksuan19.me> | 2020-05-20 18:36:07 +0800 |
| commit | 5175966ad0f734ca4dc1fa12b0d1d05c6ba4e664 (patch) | |
| tree | f9e31d06c6f32ea16bfc7ce07eed17d980fc4c82 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 3f9737615ae6ecb3eed58be8b9ca0e7eb4fca8e9 (diff) | |
usb: gadget: legacy: fix error return code in gncm_bind()
commit e27d4b30b71c66986196d8a1eb93cba9f602904a upstream.
If 'usb_otg_descriptor_alloc()' fails, we must return a
negative error code -ENOMEM, not 0.
Fixes: 1156e91dd7cc ("usb: gadget: ncm: 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
