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 f8a7d9aab437..5fff951a0a49 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c | |||
@@ -28,8 +28,10 @@ static struct dsa_switch_tree *dsa_get_dst(u32 tree) | |||
28 | struct dsa_switch_tree *dst; | 28 | struct dsa_switch_tree *dst; |
29 | 29 | ||
30 | list_for_each_entry(dst, &dsa_switch_trees, list) | 30 | list_for_each_entry(dst, &dsa_switch_trees, list) |
31 | if (dst->tree == tree) | 31 | if (dst->tree == tree) { |
32 | kref_get(&dst->refcount); | ||
32 | return dst; | 33 | return dst; |
34 | } | ||
33 | return NULL; | 35 | return NULL; |
34 | } | 36 | } |
35 | 37 | ||