]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: validate RX descriptor length
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:25 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:14:14 +0000 (00:14 +0200)
commit2c301d5fb9a1d2756180a22bbfa2d46b51028a12
tree49e24ba48884bbec3d63152700e61841803d9c8b
parent342403ec4e19f8af1df4cb70e83f213e56249164
iwlwifi: pcie: validate RX descriptor length

Validate the maximum RX descriptor length against the size
of the buffers we gave the device - if it doesn't fit then
the hardware messed up.

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.6378fb435cc0.Ib07485f3dc5999c74b03f21e7a808c50a05e353c@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c