commit | f0c46ebf58ea9828986a4ce27010e2fcf37019d3 | [log] [tgz] |
---|---|---|
author | Satish Babu Patakokila <sbpata@codeaurora.org> | Fri Jun 01 12:34:18 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Jun 08 09:12:51 2018 -0700 |
tree | d0e4f980e8f360c81b6e25c3c137ec662d9fa3b6 | |
parent | 7bb0eac17edc754034f23efcd514bfa876bc9956 [diff] |
hal: Fix NULL pointer dereference Fix NULL pointer dereference in error case while querying license from ACDB. Change-Id: I8fab52d051655c6502adf3585d58cfcd365ec0cf
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c index e7344a0..506d4a4 100755 --- a/hal/msm8916/platform.c +++ b/hal/msm8916/platform.c
@@ -3177,7 +3177,8 @@ ALOGD("%s: License not found for %s", __func__, product_name); on_error: - *product_id = 0; + if (product_id) + *product_id = 0; return ret; }