diff options
Diffstat (limited to 'net/dsa/dsa2.c')
-rw-r--r-- | net/dsa/dsa2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 033b3bfb63dc..7796580e99ee 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c | |||
@@ -484,8 +484,10 @@ static void dsa_dst_unapply(struct dsa_switch_tree *dst) | |||
484 | dsa_ds_unapply(dst, ds); | 484 | dsa_ds_unapply(dst, ds); |
485 | } | 485 | } |
486 | 486 | ||
487 | if (dst->cpu_switch) | 487 | if (dst->cpu_switch) { |
488 | dsa_cpu_port_ethtool_restore(dst->cpu_switch); | 488 | dsa_cpu_port_ethtool_restore(dst->cpu_switch); |
489 | dst->cpu_switch = NULL; | ||
490 | } | ||
489 | 491 | ||
490 | pr_info("DSA: tree %d unapplied\n", dst->tree); | 492 | pr_info("DSA: tree %d unapplied\n", dst->tree); |
491 | dst->applied = false; | 493 | dst->applied = false; |