Skip to content
Commit 6e507644 authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Felipe Balbi
Browse files

usb: raw-gadget: fix return value of ep read ioctls



They must return the number of bytes transferred during the data stage.

Fixes: 068fbff4 ("usb: raw-gadget: Fix copy_to/from_user() checks")
Fixes: f2c2e717 ("usb: gadget: add raw-gadget interface")
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 4748d396
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment