diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-04 22:22:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-14 16:29:47 -0400 |
commit | 1b73af8284c3fcbb65eefb9141237b7e45cedd21 (patch) | |
tree | 99814b1b248b3452ce0388c7faa7a6ef5efc63e8 /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 164669032ecbf7c9a3bc78adad4e13ee486e975c (diff) |
iwlwifi: fix spinlock used before initialized
The patch fixes spinlock priv->lock (apm_ops.init) is used before it has
been initialized.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index aab0ee6d8af4..7759e63b2bcf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -174,9 +174,8 @@ int iwl_hw_nic_init(struct iwl_priv *priv) | |||
174 | int ret; | 174 | int ret; |
175 | 175 | ||
176 | /* nic_init */ | 176 | /* nic_init */ |
177 | priv->cfg->ops->lib->apm_ops.init(priv); | ||
178 | |||
179 | spin_lock_irqsave(&priv->lock, flags); | 177 | spin_lock_irqsave(&priv->lock, flags); |
178 | priv->cfg->ops->lib->apm_ops.init(priv); | ||
180 | iwl_write32(priv, CSR_INT_COALESCING, 512 / 32); | 179 | iwl_write32(priv, CSR_INT_COALESCING, 512 / 32); |
181 | spin_unlock_irqrestore(&priv->lock, flags); | 180 | spin_unlock_irqrestore(&priv->lock, flags); |
182 | 181 | ||