summaryrefslogtreecommitdiffstats
path: root/kernel/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ipv6/ip6mr.c')
-rw-r--r--kernel/net/ipv6/ip6mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/ipv6/ip6mr.c b/kernel/net/ipv6/ip6mr.c
index 74ceb73c1..5f36266b1 100644
--- a/kernel/net/ipv6/ip6mr.c
+++ b/kernel/net/ipv6/ip6mr.c
@@ -550,7 +550,7 @@ static void ipmr_mfc_seq_stop(struct seq_file *seq, void *v)
if (it->cache == &mrt->mfc6_unres_queue)
spin_unlock_bh(&mfc_unres_lock);
- else if (it->cache == mrt->mfc6_cache_array)
+ else if (it->cache == &mrt->mfc6_cache_array[it->ct])
read_unlock(&mrt_lock);
}