Skip to content
Commit 48415470 authored by Arumuga Durai A's avatar Arumuga Durai A Committed by Gerrit - the friendly Code Review server
Browse files

USB: gadget: serial: Fix debugfs crash



Serial function driver creates debugfs files even though ports
are not allocated. Fetching/reading those files without allocation
of ports leads to crash. Check port allocation before creating
the files.

CRs-Fixed: 1003498
Change-Id: I85b050a261cca6f961d5d9058efb8b7facf242ce
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent 78d56204
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