* [PATCH] 2/2 DECnet fix crash reading /proc/net/decnet_cache
@ 2004-01-26 11:31 Patrick Caulfield
0 siblings, 0 replies; only message in thread
From: Patrick Caulfield @ 2004-01-26 11:31 UTC (permalink / raw)
To: davem, linux-kernel; +Cc: Steve Whitehouse
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-26 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 11:31 [PATCH] 2/2 DECnet fix crash reading /proc/net/decnet_cache Patrick Caulfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.