diff options
author | 2021-06-21 21:24:15 +0800 | |
---|---|---|
committer | 2021-06-24 14:11:26 +0200 | |
commit | 42601e356bfa8123e44a3d726d4abd4164a71f7c (patch) | |
tree | 4b520b738c4764c72eb43d3ed593877f79310ef0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'usb-serial-5.14-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next (diff) | |
download | linux-dev-42601e356bfa8123e44a3d726d4abd4164a71f7c.tar.xz linux-dev-42601e356bfa8123e44a3d726d4abd4164a71f7c.zip |
usb: class: cdc-wdm: return the correct errno code
The "rv" is initialized to "-ENOMEM", because "rv" is re-assigned to
"-EINVAL", when kmalloc & usb_alloc_urb failed, the return value should
return "-ENOMEM" rather than "-EINVAL",so the "rv" assignment is placed
in the position where usb_endpoint_is_int_in is false.
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Junlin Yang <yangjunlin@yulong.com>
Link: https://lore.kernel.org/r/20210621132415.2341-1-angkery@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions