summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-19 23:28:00 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-19 23:27:59 -0700
commitd4ba07ec09f28611d0eb62ab617d8d6dceb84a2c (patch)
treeeb420d7e0d2f99cb09f3f9d466387c39bd8b3769
parent6d49a1e9dbd9e54c6a9496797cbdde037344d21b (diff)
parent14d435eaf2a5ede029635695b5fe3677c2666c71 (diff)
Merge "regulator: cpr3-regulator: fix potential aging uninitialized variable usage"
-rw-r--r--drivers/regulator/cpr3-regulator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/cpr3-regulator.c b/drivers/regulator/cpr3-regulator.c
index 232373092746..cd02debc37aa 100644
--- a/drivers/regulator/cpr3-regulator.c
+++ b/drivers/regulator/cpr3-regulator.c
@@ -3362,7 +3362,8 @@ static int cpr3_regulator_measure_aging(struct cpr3_controller *ctrl,
if (rc) {
cpr3_err(ctrl, "failed to clear CPR4 configuration,rc=%d\n",
rc);
- goto cleanup;
+ kfree(quot_delta_results);
+ return rc;
}
}