diff options
| author | Tanvi Aggarwal <tanvia@codeaurora.org> | 2016-09-12 17:41:23 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-20 22:10:06 -0700 |
| commit | e2f82b3995bb59cc8b940911189d8e266da51c78 (patch) | |
| tree | cfb0bad50829008292b7346b3649e9e0501e0156 /tools/perf/scripts/python | |
| parent | 9e2d528dc47d04e98c5e6f1c4ef84fc268115d36 (diff) | |
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: Tanvi Aggarwal <tanvia@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
