From: Bob Copeland Date: Thu, 16 Oct 2008 15:02:06 +0000 (-0400) Subject: ath5k: fix suspend-related oops on rmmod X-Git-Tag: v2.6.28-rc1~3^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bdd5b9c6bd53add260756b6673a0545fbdbba21;p=pandora-kernel.git ath5k: fix suspend-related oops on rmmod Based on a patch by Elias Oltmanns, we call ath5k_init in resume even if we didn't previously open the device. Besides starting up the device unnecessarily, this also causes an oops on rmmod because mac80211 will not invoke ath5k_stop and softirqs are left running after the module has been unloaded. Add a new state bit, ATH_STAT_STARTED, to indicate that we have been started up. Reported-by: Toralf Förster Signed-off-by: Elias Oltmanns Signed-off-by: Bob Copeland Cc: stable@kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed