Commit 27df68d5 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Jakub Kicinski

net/ipa: ipa_resource: Fix wrong for loop range

The source group count was mistakenly assigned to both dst and src loops.
Fix it to make IPA probe and work again.

Fixes: 4fd704b3 ("net: ipa: record number of groups in data")
Acked-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20211111183724.593478-1-konrad.dybcio@somainline.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0cda7d4b
...@@ -52,7 +52,7 @@ static bool ipa_resource_limits_valid(struct ipa *ipa, ...@@ -52,7 +52,7 @@ static bool ipa_resource_limits_valid(struct ipa *ipa,
return false; return false;
} }
group_count = data->rsrc_group_src_count; group_count = data->rsrc_group_dst_count;
if (!group_count || group_count > IPA_RESOURCE_GROUP_MAX) if (!group_count || group_count > IPA_RESOURCE_GROUP_MAX)
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment