iwmc3200wifi: check for iwm_priv_init error
authorZhu Yi <yi.zhu@intel.com>
Mon, 15 Jun 2009 19:36:13 +0000 (21:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:15 +0000 (11:50 -0400)
commit8d96e7960b6b520eb52be6e1eb7c794da5db9555
tree8df4c510bef677704318d0868fa9a6748ff4ef5c
parentcb2107be43d2fc5eadec58b92b54bf32c00bfff3
iwmc3200wifi: check for iwm_priv_init error

We need to check for iwm_priv_init() errors and do proper cleanups.
Otherwise we may fail to catch the create_singlethread_workqueue()
error which will cause a kernel oops when destroy_workqueue() later.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/iwm.h
drivers/net/wireless/iwmc3200wifi/main.c
drivers/net/wireless/iwmc3200wifi/netdev.c