commit | 6e507644209b4a043363e165855a3a3050c4d40e | [log] [tgz] |
---|---|---|
author | Andrey Konovalov <andreyknvl@google.com> | Thu May 07 19:06:54 2020 +0200 |
committer | Felipe Balbi <balbi@kernel.org> | Sat May 09 11:05:09 2020 +0300 |
tree | 9e359efcd1d74b16b6234a6273dcaac65e9fc50e | |
parent | 4748d396399a9383bbb3b391b4661850261efc3f [diff] |
usb: raw-gadget: fix return value of ep read ioctls They must return the number of bytes transferred during the data stage. Fixes: 068fbff4f860 ("usb: raw-gadget: Fix copy_to/from_user() checks") Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>