diff options
author | 2020-04-06 17:51:19 +0300 | |
---|---|---|
committer | 2020-04-16 14:52:10 +0200 | |
commit | 068fbff4f860c620c8e36641c1da9a165abad24e (patch) | |
tree | 473eeed7f6e5b644599b17267f5882dd1b790832 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: typec: pi3usb30532: Set switch_ / mux_desc name field to NULL (diff) | |
download | linux-dev-068fbff4f860c620c8e36641c1da9a165abad24e.tar.xz linux-dev-068fbff4f860c620c8e36641c1da9a165abad24e.zip |
usb: raw-gadget: Fix copy_to/from_user() checks
The copy_to/from_user() functions return the number of bytes remaining
but we want to return negative error codes. I changed a couple checks
in raw_ioctl_ep_read() and raw_ioctl_ep0_read() to show that we still
we returning zero on error.
Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Link: https://lore.kernel.org/r/20200406145119.GG68494@mwanda
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