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

usb: raw-gadget: fix null-ptr-deref when reenabling endpoints



Currently we preassign gadget endpoints to raw-gadget endpoints during
initialization. Fix resetting this assignment in raw_ioctl_ep_disable(),
otherwise we will get null-ptr-derefs when an endpoint is reenabled.

Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 61d2658d
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