aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2/platform.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-03-11 10:07:47 +0800
committerFelipe Balbi <balbi@ti.com>2015-03-11 14:59:10 -0500
commit005a64307d5d3ef895e7821df4cad7739bab392e (patch)
treeecb7e5d25e488216143d204795927ddb6a327515 /drivers/usb/dwc2/platform.c
parent72a472d2f912292457d6e3579df342c1138f26d5 (diff)
usb: gadget: lpc32xxx_udc: Fix NULL dereference
udc is then checked for NULL, if NULL, it is then dereferenced as udc->dev, it is found using Coccinelle. We simplify the code to fix this problem, and we delete some conditions at if {} which will never be met. Reported-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Reported-by : Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/platform.c')
0 files changed, 0 insertions, 0 deletions