summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/qcom/service-locator.c6
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) *