diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-04-04 03:08:02 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-04-04 03:08:01 -0700 |
| commit | d8d96f71f3a62e854d346769c852f1e4b776fd4d (patch) | |
| tree | da1559b22d2e367cc8a92fa22d89896aace75ff5 | |
| parent | 90a7e429e6aec17731203ef8f7643bc457b74b23 (diff) | |
| parent | 5559ceed4646ffe2e13a32b9216c3701efab6fca (diff) | |
Merge "soc: qcom: service-locator: Return in case of no matching domains found"
| -rw-r--r-- | drivers/soc/qcom/service-locator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/soc/qcom/service-locator.c b/drivers/soc/qcom/service-locator.c index 5ac2a58899f4..0625f75de373 100644 --- a/drivers/soc/qcom/service-locator.c +++ b/drivers/soc/qcom/service-locator.c @@ -266,8 +266,10 @@ static int service_locator_send_msg(struct pd_qmi_client_data *pd) if (!domains_read) { db_rev_count = pd->db_rev_count = resp->db_rev_count; pd->total_domains = resp->total_domains; - if (!resp->total_domains) - pr_info("No matching domains found\n"); + if (!resp->total_domains) { + pr_err("No matching domains found\n"); + goto out; + } pd->domain_list = kmalloc( sizeof(struct servreg_loc_entry_v01) * |
