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

Skip to content
Commit 7d4a6cb4 authored by Rajkumar Raghupathy's avatar Rajkumar Raghupathy Committed by Gerrit - the friendly Code Review server
Browse files

u_ether: Handle memory allocation failure case on tx path



With multipacket feature enabled, if the memory allocation for
tx request buffer fails, accessing the req->buf leads to null
pointer dereference.

Hence, handle memory alloction failure case and return -ENOMEM.

Change-Id: Ic5faac8ea7eb056755b03007c48ff085f10afa20
Signed-off-by: default avatarRajkumar Raghupathy <raghup@codeaurora.org>
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 2e385144
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment