Skip to content

Commit 27df68d

Browse files
Konrad Dybciokuba-moo
authored andcommitted
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: 4fd704b ("net: ipa: record number of groups in data") Acked-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Marijn Suijten <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Reviewed-by: Alex Elder <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0cda7d4 commit 27df68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ipa/ipa_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static bool ipa_resource_limits_valid(struct ipa *ipa,
5252
return false;
5353
}
5454

55-
group_count = data->rsrc_group_src_count;
55+
group_count = data->rsrc_group_dst_count;
5656
if (!group_count || group_count > IPA_RESOURCE_GROUP_MAX)
5757
return false;
5858

0 commit comments

Comments
 (0)