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

Commit d7ca6af9 authored by Kyong Hwa Bae's avatar Kyong Hwa Bae Committed by Gerrit - the friendly Code Review server
Browse files

msm: sensor: actuator: NULL pointer protection for step table



In case of HW failure, actuator step table is not created.
Add NULL pointer check before using step table.
In case of returning with errors, free the variable memory.
This change also removes unused variables.

Change-Id: I09852ea97b95cf256244b89a2e64156f1b9ac711
Signed-off-by: default avatarKyong Hwa Bae <kbae@codeaurora.org>
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent 53d2912c
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