diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-12-06 09:14:35 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-12-06 09:14:35 +0100 |
commit | 78987584de42742bb46eaf55517a0475bfd7f032 (patch) | |
tree | c1a54c004cfe8cd383bec5cf254d2e053133f098 /net/dsa/dsa2.c | |
parent | e7af7b15121ca08c31a0ab9df71a41b4c53365b4 (diff) | |
parent | d9d04527c79f0f7d9186272866526e871ef4ac6f (diff) |
Merge branch 'linus' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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) struct dsa_switch_tree *dst; list_for_each_entry(dst, &dsa_switch_trees, list) - if (dst->tree == tree) + if (dst->tree == tree) { + kref_get(&dst->refcount); return dst; + } return NULL; } |