From: Zhuang Jin Can Date: Wed, 3 Sep 2014 06:26:34 +0000 (+0800) Subject: usb: dwc3: gadget: Fix desc NULL pointer in dwc3_gadget_ep_queue() X-Git-Tag: fixes-for-v3.18-merge-window~137^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdee4ebac96bb44c9c488fdd830b7cc831cd295d;p=pandora-kernel.git 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 Signed-off-by: Jiebing Li Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed