Skip to content

Commit

Permalink
iwl3945: initialize is_valid_rtc_data_addr function pointer
Browse files Browse the repository at this point in the history
Initialize is_valid_rtc_data_addr function pointer for iwl3945 to
prevent a NULL pointer dereference in iwl_dump_nic_error_log.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Jason Andryuk authored and John W. Linville committed Feb 27, 2009
1 parent 53b23b8 commit c243698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/iwlwifi/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,7 @@ static struct iwl_lib_ops iwl3945_lib = {
.query_addr = iwlcore_eeprom_query_addr,
},
.send_tx_power = iwl3945_send_tx_power,
.is_valid_rtc_data_addr = iwl3945_hw_valid_rtc_data_addr,
};

static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = {
Expand Down

0 comments on commit c243698

Please sign in to comment.