All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Caulfield <patrick@tykepenguin.com>
To: davem@redhat.com, linux-kernel@vger.kernel.org
Cc: Steve Whitehouse <Steve@ChyGwyn.com>
Subject: [PATCH] 2/2 DECnet fix crash reading /proc/net/decnet_cache
Date: Mon, 26 Jan 2004 11:31:18 +0000	[thread overview]
Message-ID: <20040126113118.GC21366@tykepenguin.com> (raw)

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


                 reply	other threads:[~2004-01-26 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040126113118.GC21366@tykepenguin.com \
    --to=patrick@tykepenguin.com \
    --cc=Steve@ChyGwyn.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.