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

Commit c778357d authored by Tanvi Aggarwal's avatar Tanvi Aggarwal Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Fix KW issues in sensor code



Fixing issue where we are dereferencing a NULL pointer.
There is an issue where, if we have a failure in memory
allocation for a mutex, we are not updating rc but freeing
the allocated memory for i2c client. Hence this may lead
to NULL pointer dereference for i2c client at next stage.
Hence we are updating correct rc before freeing the i2c
client memory and returning back to parent function.

CRs-Fixed: 1066972
Change-Id: I7f9493344da2baddb88fd0db14b894fc242d9f9f
Signed-off-by: default avatarTanvi Aggarwal <tanvia@codeaurora.org>
parent 1299ca69
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