[lvc-project] [PATCH v2 6.1] wifi: iwlwifi: add a few rate index validity checks

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Jan 30 12:46:56 MSK 2025


On Wed, Jan 29, 2025 at 05:32:30PM +0300, Dmitry Antipov wrote:
> From: Anjaneyulu <pagadala.yesu.anjaneyulu at intel.com>
> 
> commit efbe8f81952fe469d38655744627d860879dcde8 upstream.
> 
> Validate index before access iwl_rate_mcs to keep rate->index
> inside the valid boundaries. Use MCS_0_INDEX if index is less
> than MCS_0_INDEX and MCS_9_INDEX if index is greater than
> MCS_9_INDEX.
> 
> Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu at intel.com>
> Signed-off-by: Gregory Greenman <gregory.greenman at intel.com>
> Link: https://lore.kernel.org/r/20230614123447.79f16b3aef32.If1137f894775d6d07b78cbf3a6163ffce6399507@changeid
> Signed-off-by: Johannes Berg <johannes.berg at intel.com>
> Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>
> ---
> v2: (re)adjust copyright notice

You also fixed the grammer in the changelog!  Ugh, let me just go
backport these myself, please don't change things that you shouldn't
need to change...

greg k-h



More information about the lvc-project mailing list