diff options
| author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-23 05:36:48 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 14:13:29 +0100 |
| commit | f2b6ebf61e8fcd0b1f03a084d39742b1f6113ac4 (patch) | |
| tree | 4c19562057454ba009c98e2559bb5526d1a83caf /tools/perf/scripts/python | |
| parent | usb: core: sysfs: Check for SSP rate in speed attr (diff) | |
| download | linux-f2b6ebf61e8fcd0b1f03a084d39742b1f6113ac4.tar.gz linux-f2b6ebf61e8fcd0b1f03a084d39742b1f6113ac4.zip | |
usb: gadget: legacy: fix error return code of msg_bind()
When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error
return code of msg_bind() is assigned.
To fix this bug, status is assigned with -ENOMEM in this case.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20210323123648.3997-1-baijiaju1990@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
