[PATCH] 2/2 DECnet fix crash reading /proc/net/decnet_cache

From: Patrick Caulfield
Date: Mon Jan 26 2004 - 06:33:56 EST


This patch fixes an oops if a user reads /proc/net/decnet_cache


--- net/decnet/dn_route.c 24 Nov 2003 03:16:28 -0000 1.3
+++ net/decnet/dn_route.c 17 Dec 2003 09:54:37 -0000
@@ -1720,7 +1720,8 @@

static void dn_rt_cache_seq_stop(struct seq_file *seq, void *v)
{
- rcu_read_unlock();
+ if (v)
+ rcu_read_unlock();
}

static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)


patrick

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/