]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: make sure cur_fw_img is valid before accessing img
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 6 Nov 2018 06:24:12 +0000 (08:24 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:30 +0000 (16:10 +0200)
commit9adcc117bc7d16e5ef226fec0a1d1f25765bf9ce
treef864551e85f7693f8fa65af8b2fb6e875b7f3f47
parent29cf396f08f6476935c445faddcaf90f2fe2fa87
iwlwifi: make sure cur_fw_img is valid before accessing img

Harden the fwrt->fw->img array access by making sure the cur_fw_img
value doesn't go out of bounds.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.h