aboutsummaryrefslogtreecommitdiffstats
path: root/lib/klist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/klist.c')
-rw-r--r--lib/klist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/klist.c b/lib/klist.c
index bb2f3551d50a..9c94f0b163a1 100644
--- a/lib/klist.c
+++ b/lib/klist.c
@@ -199,6 +199,8 @@ void klist_iter_init_node(struct klist * k, struct klist_iter * i, struct klist_
199 i->i_klist = k; 199 i->i_klist = k;
200 i->i_head = &k->k_list; 200 i->i_head = &k->k_list;
201 i->i_cur = n; 201 i->i_cur = n;
202 if (n)
203 kref_get(&n->n_ref);
202} 204}
203 205
204EXPORT_SYMBOL_GPL(klist_iter_init_node); 206EXPORT_SYMBOL_GPL(klist_iter_init_node);