Commit 5980aa85 authored by Devin Kim's avatar Devin Kim Committed by Iliyan Malchev
Browse files

sysmon: check if mutex lock is available



Modem boots up completedly and opens the logical channel.  Mutex is initialized
at that time.  If sysmon_get_reason is accessed before that, panic occurs by
accessing the uninitialized mutex.  Since this is a valid access scenario, we
add a flag to check if the subsystem has been probed, and return an error if
sysmon_get_reason() gets called before that.

Change-Id: If81f9fc1be5b9e0e9e6e69366d1b8d6df35e2857
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent 7f5d01de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment