Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368659
b: refs/heads/master
c: 5f64a7d
h: refs/heads/master
i:
  368657: e0d80dd
  368655: b3f968c
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Mar 25, 2013
1 parent 8dc9884 commit 42f3537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21168245031062212c0b805d0bd466ee6dd4a16f
refs/heads/master: 5f64a7dbf593c2317f132c8252d04cdfe8d4b104
8 changes: 5 additions & 3 deletions trunk/net/dsa/dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ static void dsa_of_free_platform_data(struct dsa_platform_data *pd)

for (i = 0; i < pd->nr_chips; i++) {
port_index = 0;
while (pd->chip[i].port_names &&
pd->chip[i].port_names[++port_index])
kfree(pd->chip[i].port_names[port_index]);
while (port_index < DSA_MAX_PORTS) {
if (pd->chip[i].port_names[port_index])
kfree(pd->chip[i].port_names[port_index]);
port_index++;
}
kfree(pd->chip[i].rtable);
}
kfree(pd->chip);
Expand Down

0 comments on commit 42f3537

Please sign in to comment.