aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2020-05-07 05:13:23 +0000
committerFelipe Balbi <[email protected]>2020-05-09 08:05:08 +0000
commite27d4b30b71c66986196d8a1eb93cba9f602904a (patch)
tree351be7a593c899d1acf53e199bee4ab071788d00 /tools/perf/scripts/python
parentusb: gadget: legacy: fix error return code in cdc_bind() (diff)
downloadkernel-e27d4b30b71c66986196d8a1eb93cba9f602904a.tar.gz
kernel-e27d4b30b71c66986196d8a1eb93cba9f602904a.zip
usb: gadget: legacy: fix error return code in gncm_bind()
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 <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions