Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 70617db7 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: omap_udc: remove possiblity of NULL pointer de-reference



when allocating a request, it's better programming
practice to make sure we return NULL if allocation
failed.

This will ensure that, if struct usb_request isn't
the first member on our structure, we don't cheat
the gadget driver into thinking allocating worked
because pointer isn't 0.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent dc1737cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment