Patch "net/ipa: ipa_resource: Fix wrong for loop range" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/ipa: ipa_resource: Fix wrong for loop range

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-ipa-ipa_resource-fix-wrong-for-loop-range.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d29b803d192b58fe8274f8de81932d4a5fefaa76
Author: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxx>
Date:   Thu Nov 11 19:37:24 2021 +0100

    net/ipa: ipa_resource: Fix wrong for loop range
    
    [ Upstream commit 27df68d579c67ef6c39a5047559b6a7c08c96219 ]
    
    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@xxxxxxxxxxxxxx>
    Reviewed-by: Marijn Suijten <marijn.suijten@xxxxxxxxxxxxxx>
    Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxx>
    Reviewed-by: Alex Elder <elder@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20211111183724.593478-1-konrad.dybcio@xxxxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ipa/ipa_resource.c b/drivers/net/ipa/ipa_resource.c
index e3da95d694099..06cec71993823 100644
--- a/drivers/net/ipa/ipa_resource.c
+++ b/drivers/net/ipa/ipa_resource.c
@@ -52,7 +52,7 @@ static bool ipa_resource_limits_valid(struct ipa *ipa,
 				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)
 		return false;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux