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

Commit e75eeeb4 authored by Arumuga Durai A's avatar Arumuga Durai A
Browse files

USB: gadget: ci13xxx_udc: Avoid NULL pointer dereference.



There are some instances where acquire spin_lock using mEp->lock
as one of the argument without checking availability of mEp. Since
mEp is container_of "ep", input parameter 'ep' could be null this leads
to null pointer dereference. Fix this by adding proper check before
acquiring the spin_lock.

CRs-Fixed: 2053686
Change-Id: I712343915da1f838dae6930034ad959b1f3ad4cd
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent 7d7aefae
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