diff options
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan_core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c index ebfa2fceb88b..8a15eaadc4bd 100644 --- a/net/8021q/vlan_core.c +++ b/net/8021q/vlan_core.c | |||
@@ -157,10 +157,11 @@ EXPORT_SYMBOL(vlan_untag); | |||
157 | 157 | ||
158 | static void vlan_group_free(struct vlan_group *grp) | 158 | static void vlan_group_free(struct vlan_group *grp) |
159 | { | 159 | { |
160 | int i; | 160 | int i, j; |
161 | 161 | ||
162 | for (i = 0; i < VLAN_GROUP_ARRAY_SPLIT_PARTS; i++) | 162 | for (i = 0; i < VLAN_PROTO_NUM; i++) |
163 | kfree(grp->vlan_devices_arrays[i]); | 163 | for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) |
164 | kfree(grp->vlan_devices_arrays[i][j]); | ||
164 | } | 165 | } |
165 | 166 | ||
166 | static void vlan_info_free(struct vlan_info *vlan_info) | 167 | static void vlan_info_free(struct vlan_info *vlan_info) |