diff options
author | Zhuang Jin Can <jin.can.zhuang@intel.com> | 2014-09-03 14:26:34 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-09-03 15:15:55 -0500 |
commit | fdee4ebac96bb44c9c488fdd830b7cc831cd295d (patch) | |
tree | d54527d09c12328d1836648a58a55990c10df36f /drivers/watchdog/orion_wdt.c | |
parent | 9ce9ec95fb9b82e09b55a52f1bb8a362bf8f74d8 (diff) |
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>
Diffstat (limited to 'drivers/watchdog/orion_wdt.c')
0 files changed, 0 insertions, 0 deletions