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

Skip to content
Commit 16dd2f0c authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: core: Do a null pointer check before reading debug registers



Not all registers can be set while dumping debug registers depending
on the state of the device. For example, wake doorbell is not set
until a READY state of the device is reached. Hence, we could access
a NULL pointer while dumping debug registers. Avoid this by adding a
check to skip the addresses which are not yet set.

Change-Id: Iccf275705d87023613ad3ab0c2ab53bad7ab912a
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 5974d512
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