]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: validate notification size when waiting
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:51 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:16:08 +0000 (00:16 +0200)
commit399d6fd6da480ddcff351c2077631acf49ef7722
treede133c29a312ddafda28810219d98820a3b17eaa
parente992f40179697c68370ba9a283f036a377b3f6e7
iwlwifi: mvm: validate notification size when waiting

When waiting for a notification and then processing it,
we also need to check the size of the data before we use
it. Most places do that already, but fix the remaining
ones to do it as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.b29573bcba39.I4b7e72824d06dc0719a40021d933e29edfc14713@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c
drivers/net/wireless/intel/iwlwifi/mvm/fw.c