diff options
author | Len Brown <len.brown@intel.com> | 2006-01-07 00:34:21 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 00:34:21 +0300 |
commit | 25da0974601fc8096461f3d3f7ca3aab8e79adfb (patch) | |
tree | f9b3c1bfbc63fdb6a94e82177b8c3ae891125422 /lib/klist.c | |
parent | 036d25f79ddfbc9878da24ef8e468a6d22caa605 (diff) | |
parent | d99cf9d679a520d67f81d805b7cb91c68e1847f0 (diff) | |
download | linux-25da0974601fc8096461f3d3f7ca3aab8e79adfb.tar.xz |
Auto-update from upstream
Diffstat (limited to 'lib/klist.c')
-rw-r--r-- | lib/klist.c | 2 |
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_ 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); |