Skip to content

Commit 57f20d5

Browse files
lumagandersson
authored andcommitted
soc: qcom: pdr: fix parsing of domains lists
While parsing the domains list, start offsets from 0 rather than from domains_read. The domains_read is equal to the total count of the domains we have seen, while the domains list in the message starts from offset 0. Fixes: fbe639b ("soc: qcom: Introduce Protection Domain Restart helpers") Tested-by: Steev Klimaszewski <[email protected]> Tested-by: Alexey Minnekhanov <[email protected]> Reviewed-by: Chris Lew <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on SM8550-QRD Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 107924c commit 57f20d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/qcom/pdr_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ static int pdr_locate_service(struct pdr_handle *pdr, struct pdr_service *pds)
417417
if (ret < 0)
418418
goto out;
419419

420-
for (i = domains_read; i < resp->domain_list_len; i++) {
420+
for (i = 0; i < resp->domain_list_len; i++) {
421421
entry = &resp->domain_list[i];
422422

423423
if (strnlen(entry->name, sizeof(entry->name)) == sizeof(entry->name))

0 commit comments

Comments
 (0)