summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-21 16:13:00 +0100
committerFelipe Balbi <balbi@kernel.org>2020-05-25 11:09:43 +0300
commiteafa80041645cd7604c4357b1a0cd4a3c81f2227 (patch)
tree131361025f4b9c2eda5024e461bb5fc8e8b3439d /drivers/usb/cdns3/cdns3-ti.c
parent1c0e69ae1b9f9004fd72978612ae3463791edc56 (diff)
downloadlinux-eafa80041645cd7604c4357b1a0cd4a3c81f2227.tar.bz2
usb: gadget: lpc32xx_udc: don't dereference ep pointer before null check
Currently pointer ep is being dereferenced before it is null checked leading to a null pointer dereference issue. Fix this by only assigning pointer udc once ep is known to be not null. Also remove a debug message that requires a valid udc which may not be possible at that point. Addresses-Coverity: ("Dereference before null check") Fixes: 24a28e428351 ("USB: gadget driver for LPC32xx") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions