ia64/xen-unstable

changeset 11895:20522afb2615

[NET] front: Fix "rmmod xennet" crash in dom0.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
author kfraser@localhost.localdomain
date Wed Oct 18 19:23:32 2006 +0100 (2006-10-18)
parents 47718a3d011e
children 57635264b6c2
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Wed Oct 18 19:20:36 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Wed Oct 18 19:23:32 2006 +0100
     1.3 @@ -2129,6 +2129,9 @@ module_init(netif_init);
     1.4  
     1.5  static void __exit netif_exit(void)
     1.6  {
     1.7 +	if (is_initial_xendomain())
     1.8 +		return;
     1.9 +
    1.10  	unregister_inetaddr_notifier(&notifier_inetdev);
    1.11  
    1.12  	return xenbus_unregister_driver(&netfront);