Skip to content
Commit fdee4eba authored by Zhuang Jin Can's avatar Zhuang Jin Can Committed by Felipe Balbi
Browse files

usb: dwc3: gadget: Fix desc NULL pointer in dwc3_gadget_ep_queue()



dep->endpoint.desc is checked at the beginning of
dwc3_gadget_ep_queue(), but after that it may be set to NULL
by another thread and then accessed again in dwc3_gadget_ep_queue().
This will lead to kernel oops.

Expand spinlock protection area to aviod race condition.

Signed-off-by: default avatarZhuang Jin Can <jin.can.zhuang@intel.com>
Signed-off-by: default avatarJiebing Li <jiebing.li@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 9ce9ec95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment