diff options
| author | Colin Ian King <colin.king@canonical.com> | 2020-05-21 16:13:00 +0100 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2020-06-29 20:07:53 -0400 |
| commit | c16f825fb0a34439414aab5b8f4a30b35656300e (patch) | |
| tree | fc17e3d82b3cf0769ee0dbd29763ea9b475d6999 /include/linux/debugobjects.h | |
| parent | 8537aebb89b68f187f79ceaef8be7ac4315eeab5 (diff) | |
usb: gadget: lpc32xx_udc: don't dereference ep pointer before null check
[ Upstream commit eafa80041645cd7604c4357b1a0cd4a3c81f2227 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
