Re: oops on rmmod of rtl8192ce

From: Larry Finger
Date: Mon Apr 09 2012 - 15:16:43 EST


On 04/09/2012 10:02 AM, Dave Airlie wrote:
ping any ideas on this oops on unload?

Sorry about the delay.

The oops looks like interrupts are not being disabled soon enough. Does the following patch help?


Index: wireless-testing-new/drivers/net/wireless/rtlwifi/pci.c
===================================================================
--- wireless-testing-new.orig/drivers/net/wireless/rtlwifi/pci.c
+++ wireless-testing-new/drivers/net/wireless/rtlwifi/pci.c
@@ -1943,6 +1943,7 @@ void rtl_pci_disconnect(struct pci_dev *
rtl_deinit_deferred_work(hw);
rtlpriv->intf_ops->adapter_stop(hw);
}
+ rtlpriv->cfg->ops->disable_interrupt(hw);

/*deinit rfkill */
rtl_deinit_rfkill(hw);

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/