aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorZhuang Jin Can <[email protected]>2014-09-03 06:26:34 +0000
committerFelipe Balbi <[email protected]>2014-09-03 20:15:55 +0000
commitfdee4ebac96bb44c9c488fdd830b7cc831cd295d (patch)
treed54527d09c12328d1836648a58a55990c10df36f /lib/string.c
parentusb: phy: tegra: Avoid use of sizeof(void) (diff)
downloadkernel-fdee4ebac96bb44c9c488fdd830b7cc831cd295d.tar.gz
kernel-fdee4ebac96bb44c9c488fdd830b7cc831cd295d.zip
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 <[email protected]> Signed-off-by: Jiebing Li <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions