net/ipa: ipa_resource: Fix wrong for loop range
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Thu, 11 Nov 2021 18:37:24 +0000 (19:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Nov 2021 03:59:45 +0000 (19:59 -0800)
commit27df68d579c67ef6c39a5047559b6a7c08c96219
tree6d82fd0a06bf2f5cddd418f2f05ee932999ee821
parent0cda7d4bac5fd29dceb13df26083333fa99d6bb4
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: 4fd704b3608a ("net: ipa: record number of groups in data")
Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20211111183724.593478-1-konrad.dybcio@somainline.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_resource.c