Commit 6c39fe96 authored by Pratham Pratap's avatar Pratham Pratap Committed by Gerrit - the friendly Code Review server
Browse files

usb: gsi: Add NULL pointer check



Static code analysis tool is detecting a possible NULL pointer
dereference for gsi->d_port.in_ep in the error handling path.
This change adds a NULL pointer check to avoid this issue.

Change-Id: I4adf03e933cece0698cd3761c8758f4bd98925f4
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 46499873
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment