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

Skip to content
Commit 32709f76 authored by Sujeet Kumar's avatar Sujeet Kumar
Browse files

USB: android: NULL check before accessing cdev



An incorrect write to Function FS EP0 file
with FFS_READ_STRINGS function state
will lead to a crash when adb is not enabled.
If ADB is not enabled, the android_dev will not
be set and hence the missing dev NULL check
would lead to a crash.

Add the dev NULL check to fix this issue.

CRs-Fixed: 560999
Change-Id: I0350f736c53dcef8def71eb37d85d06e9d4b3277
Signed-off-by: default avatarSujeet Kumar <ksujeet@codeaurora.org>
parent a40ca38d
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