usb: gadget: fsl: fix null pointer checking
authorRan Wang <ran.wang_1@nxp.com>
Fri, 16 Oct 2020 04:33:26 +0000 (12:33 +0800)
committerFelipe Balbi <balbi@kernel.org>
Tue, 27 Oct 2020 08:57:24 +0000 (10:57 +0200)
commit48e7bbbbb261b007fe78aa14ae62df01d236497e
tree0019819dc398cf24334f0e691cd2c7d3f753d31a
parent0d66e04875c5aae876cf3d4f4be7978fa2b00523
usb: gadget: fsl: fix null pointer checking

fsl_ep_fifo_status() should return error if _ep->desc is null.

Fixes: 75eaa498c99e (“usb: gadget: Correct NULL pointer checking in fsl gadget”)
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/fsl_udc_core.c