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

Skip to content
Commit a2c68edc authored by Hemant Kumar's avatar Hemant Kumar Committed by Sivasri Kumar Vanka
Browse files

usb: gadget: u_ether: Add NULL check for IN and OUT ep context



u_ether driver can used for a function driver which has only
IN endpoint for data transfer. This results into OUT ep context
as NULL and causes NULL pointer dereference. Hence check
both IN and OUT ep context before dereferencing the context pointer.

Change-Id: I77d909ce0954f3cc87fc2bd2be254854e4662d4a
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent 9647c359
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