author: Frank Pavlic <pavlic@de.ibm.com> 2005-11-26 20:48:40 -0800
committer: Greg Kroah-Hartman <gregkh@suse.de> 2006-01-04 16:18:08 -0800
commit: e22dafbcd7a579c29a424d5203b5b33b131948a7
parent: bf74ad5bc41727d5f2f1c6bedb2c1fac394de731
Commit Summary:
Diffstat:
1 file 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_
i->i_klist = k;
i->i_head = &k->k_list;
i->i_cur = n;
+ if (n)
+ kref_get(&n->n_ref);
}
EXPORT_SYMBOL_GPL(klist_iter_init_node);