diff options
author | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
commit | b10778a00d40b3d9fdaaf5891e802794781ff71c (patch) | |
tree | 6ba4cbac86eecedc3f30650e7f764ecf00c83898 /net/dsa/dsa.c | |
parent | 594081ee7145cc30a3977cb4e218f81213b63dc5 (diff) | |
parent | bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff) |
Merge commit 'v3.17' into next
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 5db37cef50a9..0a49632fac47 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -351,8 +351,7 @@ static void dsa_of_free_platform_data(struct dsa_platform_data *pd) | |||
351 | for (i = 0; i < pd->nr_chips; i++) { | 351 | for (i = 0; i < pd->nr_chips; i++) { |
352 | port_index = 0; | 352 | port_index = 0; |
353 | while (port_index < DSA_MAX_PORTS) { | 353 | while (port_index < DSA_MAX_PORTS) { |
354 | if (pd->chip[i].port_names[port_index]) | 354 | kfree(pd->chip[i].port_names[port_index]); |
355 | kfree(pd->chip[i].port_names[port_index]); | ||
356 | port_index++; | 355 | port_index++; |
357 | } | 356 | } |
358 | kfree(pd->chip[i].rtable); | 357 | kfree(pd->chip[i].rtable); |