From: Zhu Yi Date: Mon, 15 Jun 2009 19:59:48 +0000 (+0200) Subject: iwmc3200wifi: fix potential kernel oops on module removal X-Git-Tag: v2.6.31-rc1~63^2~9^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e9aa52e36a7beb4c0163324a3de759d7cf2e442;p=pandora-kernel.git iwmc3200wifi: fix potential kernel oops on module removal The iwm_if_free() is called before destroy_workqueue for isr_wq on device remove method. But if there is still some pending work in the isr_wq, the required data structures are already freed at this point. This leeds a kernel oops. The patch fixes this problem by moving iwm_if_free after destroy_workqueue. Signed-off-by: Zhu Yi Signed-off-by: Samuel Ortiz Signed-off-by: John W. Linville --- Reading git-diff-tree failed