Skip to content
Commit 7cabafce authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville
Browse files

ipw2x00: fix rtnl mutex deadlock

This fix regression introduced by:

commit: ecb44335


Author: Stanislaw Gruszka <sgruszka@redhat.com>
Date:   Fri Aug 12 14:00:59 2011 +0200

    mac80211: fix suspend/resume races with unregister hw

Above commit add rtnl_lock() into wiphy_register(), what cause deadlock
when initializing ipw2x00 driver, which itself call wiphy_register()
from register_netdev() internal callback with rtnl mutex taken.

To fix move wiphy_register() outside register_netdev(). This solution
have side effect of not creating /sys/class/net/wlanX/phy80211 link,
but that's a minor issue we can live with.

Bisected-by: default avatarWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Bisected-by: default avatarMichael Witten <mfwitten@gmail.com>
Tested-by: default avatarWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Tested-by: default avatarMichael Witten <mfwitten@gmail.com>
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aa3d7eef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment