OSDN Git Service

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)
commitfd1c3318f4e7cf30cd73efb3cb5e9648efc6625b
treede133c29a312ddafda28810219d98820a3b17eaa
parentd3d9b4fca3636bb2dc75e2eb2e4e384bbf5e4159
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