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

Commit 1210e28c authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

USB: gadget: rndis: Fix NULL pointer crash during proc file read



Proc files are created during bootup and can be accessed before
cable connect or before enabling rndis. This could cause NULL
pointer access if read before cable connection or rndis enabled
as dev pointer is being accessed, which will be set during
set configuration request. Hence fix this by having check for
NULL pointer access.

Change-Id: I84d987e217e7493260e2dde8e3d1626249b8ac22
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent bb29ea15
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