diff options
author | David S. Miller <davem@davemloft.net> | 2009-01-29 15:27:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-29 15:27:47 -0800 |
commit | ae9e47e9e864bc5f0a7a7e71dc3f287196b3626b (patch) | |
tree | 08aac6bd0b77fb8a3936f120e87574cb32459d2d /drivers/net/wireless/iwlwifi | |
parent | a4e6db07984529847c6ad8bc616485e721dcb809 (diff) | |
parent | be0093705c3ce98d73cac0ca8f93ea105cdf4e9c (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 0dc8eed1640..b35c8813bef 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -1719,6 +1719,10 @@ static int iwl_read_ucode(struct iwl_priv *priv) priv->ucode_data_backup.len = data_size; iwl_alloc_fw_desc(priv->pci_dev, &priv->ucode_data_backup); + if (!priv->ucode_code.v_addr || !priv->ucode_data.v_addr || + !priv->ucode_data_backup.v_addr) + goto err_pci_alloc; + /* Initialization instructions and data */ if (init_size && init_data_size) { priv->ucode_init.len = init_size; |