iwlagn: fix null pointer access during ucode load on 1000
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 24 Jul 2009 18:13:12 +0000 (11:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jul 2009 19:45:53 +0000 (15:45 -0400)
commitf7ea097d9b4e61a816c041c92548aad7c7ed7915
tree281e453f3ac975c94204ef338473bbd8417cd252
parent1da46bebb1bb01a77333e6509e74e12b85df5729
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 <reinette.chatre@intel.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-1000.c