Merge "soc: qcom: service-locator: Return in case of no matching domains found"

This commit is contained in:
Linux Build Service Account 2017-04-04 03:08:02 -07:00 committed by Gerrit - the friendly Code Review server
commit d8d96f71f3

View file

@ -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) *