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

Commit f0c46ebf authored by Satish Babu Patakokila's avatar Satish Babu Patakokila Committed by Gerrit - the friendly Code Review server
Browse files

hal: Fix NULL pointer dereference

Fix NULL pointer dereference in error case while querying
license from ACDB.

Change-Id: I8fab52d051655c6502adf3585d58cfcd365ec0cf
parent 7bb0eac1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3177,6 +3177,7 @@ int platform_get_license_by_product
    ALOGD("%s: License not found for %s", __func__, product_name);

on_error:
    if (product_id)
        *product_id = 0;
    return ret;
}