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
- Lines: 13
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/net/8021q/vlanproc.c
- Orig date:
2003-06-13 07:51:39.000000000 -0700
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)