diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-03-24 12:12:44 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-24 12:12:44 -0700 |
| commit | 28af635af5d7a4c817dc0cd013fbcfe1f366dc5d (patch) | |
| tree | d5967af4ba94963f0496dc6f2cfa2041d4b8af85 | |
| parent | 2b2a813f2377263288362bdbaf32e3f5df55968b (diff) | |
| parent | 87494947a8fae99f257f2d115c1f5ef6f4a60b33 (diff) | |
Merge "soc: qcom: service-locator: Free memory in case of error"
| -rw-r--r-- | drivers/soc/qcom/service-locator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/qcom/service-locator.c b/drivers/soc/qcom/service-locator.c index 0d6c1d62c732..5ac2a58899f4 100644 --- a/drivers/soc/qcom/service-locator.c +++ b/drivers/soc/qcom/service-locator.c @@ -375,6 +375,7 @@ int get_service_location(char *client_name, char *service_name, if (!pqw) { rc = -ENOMEM; pr_err("Allocation failed\n"); + kfree(pqcd); goto err; } pqw->notifier = locator_nb; |
