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

Skip to content
Commit 387f5c69 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: f_ipc: Fix debugfs node null pointer dereference



When the device boots up but ipc is not present in the default
composition, then ipc_bind does not happen and ipc_dev->in and
ipc_dev->out are null. At this point, if debugfs node 'status' is
read, then it leads to null pointer dereference when endpoint
names are accessed.
Fix this by bailing out if the EPs have not been assigned yet.

Change-Id: If9ae92f922c9c8a4f337ba152b993b5ee2226f3c
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 11d4fb41
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