]> git.karo-electronics.de Git - karo-tx-linux.git/commit
orinoco: initialise priv->hw before assigning the interrupt
authorDavid Kilroy <kilroyd@googlemail.com>
Tue, 7 Dec 2010 18:50:42 +0000 (18:50 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:55 +0000 (13:58 -0800)
commite2767cf170567c1ba2a5044a45fbe9b6a9ffc9f3
tree06d95abc4c617fa70905be1863358354c8acaba6
parenta61eefaccfff3c8f2b6f4e24a63039258b345a16
orinoco: initialise priv->hw before assigning the interrupt

commit 229bd792be0bad245b78ed8f119952733a4752e5 upstream.

The interrupt handler takes a lock - but since commit bcad6e80f3f this
lock goes through an indirection specified in the hermes_t structure.
We must therefore initialise the structure before setting up the
interrupt handler.

Fix orinoco_cs and spectrum_cs

<https://bugzilla.kernel.org/show_bug.cgi?id=23932>

Bisected by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/orinoco/orinoco_cs.c
drivers/net/wireless/orinoco/spectrum_cs.c