]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58110e69548c3bb006c42bcb35867d927f8fb781
tree6d82fd0a06bf2f5cddd418f2f05ee932999ee821
parent9e01004c503ec30bd22018693b887c063c0668a5
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: ceeecc9afea7 ("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