"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "9603b61de1eee92977d74ff42541be20c0c5b1a7"
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:Zhuang Jin Can <jin.can.zhuang@intel.com> Signed-off-by:
Jiebing Li <jiebing.li@intel.com> Signed-off-by:
Felipe Balbi <balbi@ti.com>
Loading
Please register or sign in to comment