projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: update linux 3.2 to 3.2.9
[openwrt.git]
/
package
/
switch
/
src
/
switch-core.c
diff --git
a/package/switch/src/switch-core.c
b/package/switch/src/switch-core.c
index
f5b248a
..
79b4e93
100644
(file)
--- a/
package/switch/src/switch-core.c
+++ b/
package/switch/src/switch-core.c
@@
-341,10
+341,9
@@
switch_vlan_config *switch_parse_vlan(switch_driver *driver, char *buf)
switch_vlan_config *c;
int j, u, p, s;
switch_vlan_config *c;
int j, u, p, s;
- c = k
m
alloc(sizeof(switch_vlan_config), GFP_KERNEL);
+ c = k
z
alloc(sizeof(switch_vlan_config), GFP_KERNEL);
if (!c)
return NULL;
if (!c)
return NULL;
- memset(c, 0, sizeof(switch_vlan_config));
while (isspace(*buf)) buf++;
j = 0;
while (isspace(*buf)) buf++;
j = 0;
@@
-382,7
+381,10
@@
switch_vlan_config *switch_parse_vlan(switch_driver *driver, char *buf)
while (isspace(*buf)) buf++;
}
while (isspace(*buf)) buf++;
}
- if (*buf != 0) return NULL;
+ if (*buf != 0) {
+ kfree(c);
+ return NULL;
+ }
c->port &= (1 << driver->ports) - 1;
c->untag &= (1 << driver->ports) - 1;
c->port &= (1 << driver->ports) - 1;
c->untag &= (1 << driver->ports) - 1;
This page took
0.023021 seconds
and
4
git commands to generate.