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

Commit f7df4abf authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: gsi: Avoid accessing an uninitialized variable



Prevent dereferencing an uninitialized f_gsi pointer.
Return a valid gsi context only after finding a valid
gsi_opts instance. Else return NULL.

Change-Id: I75578c0bc3f4673ec66cb80bcb7a6ae328489253
Signed-off-by: default avatarKrishna Kurapati <kriskura@codeaurora.org>
parent 1ca91eb8
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