File: vlan-fixes.patch

package info (click to toggle)
vlan 1.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 524 kB
  • ctags: 150
  • sloc: ansic: 425; perl: 168; makefile: 72; sh: 53
file content (32 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- kernel-source-2.4.14-vanilla/net/8021q/vlan.c	Wed Oct 31 00:08:12 2001
+++ kernel-source-2.4.14/net/8021q/vlan.c	Mon Nov 19 17:14:17 2001
@@ -106,6 +106,21 @@
 }
 
 /*
+ * Cleanup of groups before exit
+ */
+
+static void vlan_group_cleanup(void)
+{
+	struct vlan_group* grp = NULL;
+	for (grp = p802_1Q_vlan_list; (grp != NULL);) {
+		struct vlan_group *nextgroup;
+		nextgroup=grp->next;
+		kfree(grp);
+		grp = nextgroup;
+	}
+}
+
+/*
  *     Module 'remove' entry point.
  *     o delete /proc/net/router directory and static entries.
  */ 
@@ -116,6 +130,7 @@
 
 	dev_remove_pack(&vlan_packet_type);
 	vlan_proc_cleanup();
+	vlan_group_cleanup();
 
 	vlan_ioctl_hook = NULL;
 }