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

Commit c025747a authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Add subsys check when do powerup and powerdown



Currently subsystem register will happen in PCIe enumeration callback.
There are cases that the callback will never be called from PCIe
framework. Add NULL checks for dev from subsys_desc when do powerup
and powerdown to avoid unnecessary crashes.

Change-Id: Ie0df098047f39753d6f904dfcb67be03d18bd56c
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent c97f5cfd
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