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

Skip to content
Commit 837c6920 authored by ChandanaKishori Chiluveru's avatar ChandanaKishori Chiluveru Committed by Gerrit - the friendly Code Review server
Browse files

USB: gadget: u_ether: Fix NULL pointer dereference issue



When cable is disconnected during RNDIS data transfers, there
is a chance that eth_start_xmit() and disable callback race
each other and results in NULL pointer deference. Hence
fix it by adding is_fixed, fixed_in_len variables in
eth_start_xmit function and assign the values if port_usb
pointer is not NULL.

Change-Id: If4b4452fc7f110efd51aaedd55a1f3223d9957b6
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent dbb51c9c
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