iwlwifi: tighten boundary checks
authorLiad Kaufman <liad.kaufman@intel.com>
Sun, 21 Oct 2018 11:39:05 +0000 (14:39 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Jan 2019 18:57:21 +0000 (20:57 +0200)
commit162b22c93e66530405d793a830f75da3fc48ed31
tree725c22f459e4a15d55e28fc2eb85a64628d5474c
parent45dc7ba4b423cbec14fccbb17c884614aa2006f8
iwlwifi: tighten boundary checks

The driver assumes certain sizes and lengths aren't crossed in some
places.  Make sure this indeed happens.

Found by Klocwork.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c