commit | 5f64a7dbf593c2317f132c8252d04cdfe8d4b104 | [log] [tgz] |
---|---|---|
author | Florian Fainelli <florian@openwrt.org> | Mon Mar 25 05:03:40 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 25 12:23:41 2013 -0400 |
tree | 544ab11b3ab0f788ae8a7e087b62ac4590579785 | |
parent | 21168245031062212c0b805d0bd466ee6dd4a16f [diff] |
dsa: fix freeing of sparse port allocation If we have defined a sparse port allocation which is non-contiguous and contains gaps, the code freeing port_names will just stop when it encouters a first NULL port_names, which is not right, we should iterate over all possible number of ports (DSA_MAX_PORTS) until we are done. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>