patch-2.4.23 linux-2.4.23/net/8021q/vlanproc.c

Next file: linux-2.4.23/net/Config.in
Previous file: linux-2.4.23/net/8021q/vlan_dev.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/net/8021q/vlanproc.c linux-2.4.23/net/8021q/vlanproc.c
@@ -204,8 +204,10 @@
 #endif
 
 	/** NOTE:  This will consume the memory pointed to by dent, it seems. */
-	remove_proc_entry(VLAN_DEV_INFO(vlandev)->dent->name, proc_vlan_dir);
-	VLAN_DEV_INFO(vlandev)->dent = NULL;
+	if (VLAN_DEV_INFO(vlandev)->dent) {
+		remove_proc_entry(VLAN_DEV_INFO(vlandev)->dent->name, proc_vlan_dir);
+		VLAN_DEV_INFO(vlandev)->dent = NULL;
+	}
 
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)