From: Florian Fainelli Date: Mon, 25 Mar 2013 05:03:40 +0000 (+0000) Subject: dsa: fix freeing of sparse port allocation X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~337 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f64a7dbf593c2317f132c8252d04cdfe8d4b104;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed