]> git.baikalelectronics.ru Git - kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 8 Dec 2010 20:23:31 +0000 (15:23 -0500)
commit37069bdcfb99c42e4cbf3ebb150642038dc42750
treedf352f1bff8843a49a10086ae70bec9326c57b58
parent1713e2343f88bbf8253f97ac7c36f24ce9fb45ef
orinoco: initialise priv->hw before assigning the interrupt

The interrupt handler takes a lock - but since commit ed19be1a816 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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/orinoco_cs.c
drivers/net/wireless/orinoco/spectrum_cs.c