iwlwifi: fix spinlock used before initialized
authorRon Rindjunsky <ron.rindjunsky@intel.com>
Mon, 5 May 2008 02:22:51 +0000 (10:22 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 May 2008 20:29:47 +0000 (16:29 -0400)
commit1b73af8284c3fcbb65eefb9141237b7e45cedd21
tree99814b1b248b3452ce0388c7faa7a6ef5efc63e8
parent164669032ecbf7c9a3bc78adad4e13ee486e975c
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>
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-core.c