From: Reinette Chatre Date: Fri, 24 Jul 2009 18:13:12 +0000 (-0700) Subject: iwlagn: fix null pointer access during ucode load on 1000 X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~29208^2~506^2~18 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f7ea097d9b4e61a816c041c92548aad7c7ed7915;p=mirror_ubuntu-focal-kernel.git iwlagn: fix null pointer access during ucode load on 1000 Commit "iwlwifi: Handle new firmware file with ucode build number in header" introduced new ucode header parsing routines, but neglected to initialize these routines for 1000. The system thus goes into infinite loop trying to load ucode, failing every time with a null pointer exception as it tries to parse the header. Signed-off-by: Reinette Chatre Acked-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 80a28184a373..5f7c52053c18 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c @@ -124,6 +124,7 @@ static struct iwl_lib_ops iwl1000_lib = { }; static struct iwl_ops iwl1000_ops = { + .ucode = &iwl5000_ucode, .lib = &iwl1000_lib, .hcmd = &iwl5000_hcmd, .utils = &iwl5000_hcmd_utils,