switch: fix some memory leaks in switch_parse_vlan()

SVN-Revision: 29936
This commit is contained in:
Hauke Mehrtens
2012-01-28 13:52:37 +00:00
parent eeb00634a7
commit b9da4dcb6b
3 changed files with 8 additions and 7 deletions

View File

@@ -341,6 +341,7 @@ static int handle_vlan_port_write(void *driver, char *buf, int nr)
}
adm_wreg(0x13 + nr, (__u16) ports);
kfree(c);
return 0;
}