Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix magnetometer crashing when config is not valid.
[magnetometer] Fix crash when config is not valid. Contributes to JB#32073 There is multiple cases where pointers were not checked where the sensorfw can crash if configuration file is not according to the "happy path". This commit fixes the issues so that the sensorfw will not crash and reboot when trying to access magnetometer that is not valid. Signed-off-by: Marko Saukko <marko.saukko@jolla.com>
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters