rndis_wlan: fix initialization order for workqueue&workers
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 21 Apr 2009 16:48:07 +0000 (19:48 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:20 +0000 (16:57 -0400)
commit8d4d99ae89a8845a1d63b0529dd98da28dc0ff65
tree40f248e8dee1f73d33fa8fe9c75ddea14e39cc21
parentcaa6dfadebee2098e9c5ece1d5efae96a6926d0f
rndis_wlan: fix initialization order for workqueue&workers

rndis_wext_link_change() might be called from rndis_command() at
initialization stage and priv->workqueue/priv->work have not been
initialized yet. This causes invalid opcode at rndis_wext_bind on
some brands of bcm4320.

Fix by initializing workqueue/workers in rndis_wext_bind() before
rndis_command is used.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c