From: Patrick Caulfield <pcaulfie@redhat.com>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org, Steve@ChyGwyn.com
Subject: Re: [PATCH] 1/2 DECnet fix SDF_WILD
Date: Sat, 31 Jan 2004 11:41:01 +0000 [thread overview]
Message-ID: <20040131114101.GA3224@tykepenguin.com> (raw)
In-Reply-To: <20040130124348.40c5c014.davem@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On Fri, Jan 30, 2004 at 12:43:48PM -0800, David S. Miller wrote:
> On Mon, 26 Jan 2004 11:31:06 +0000
> Patrick Caulfield <patrick@tykepenguin.com> wrote:
>
> > This patch fixes the operation of SDF_WILD sockets on Linux 2.6.0/1
> > (they don't currently work at all).
>
> Please resubmit your patches as attachments or somehow otherwise
> teach your email client not to turn tabs into spaces as this corrupts
> your patches.
Sorry about that. Here are both patches attached (and in -p1 format this time
too)
patrick
[-- Attachment #2: decnet-patch1 --]
[-- Type: text/plain, Size: 505 bytes --]
diff -u linux-2.6.1.orig/net/decnet/af_decnet.c linux-2.6.1/net/decnet/af_decnet.c
--- linux-2.6.1.orig/net/decnet/af_decnet.c 2004-01-31 11:33:22.000000000 +0000
+++ linux-2.6.1/net/decnet/af_decnet.c 2004-01-31 11:34:30.000000000 +0000
@@ -163,7 +163,7 @@
struct dn_scp *scp = DN_SK(sk);
if (scp->addr.sdn_flags & SDF_WILD)
- return hlist_empty(&dn_wild_sk) ? NULL : &dn_wild_sk;
+ return hlist_empty(&dn_wild_sk) ? &dn_wild_sk : NULL;
return &dn_sk_hash[scp->addrloc & DN_SK_HASH_MASK];
}
[-- Attachment #3: decnet-patch2 --]
[-- Type: text/plain, Size: 447 bytes --]
diff -u linux-2.6.1.orig/net/decnet/dn_route.c linux-2.6.1/net/decnet/dn_route.c
--- linux-2.6.1.orig/net/decnet/dn_route.c 2003-12-18 02:59:42.000000000 +0000
+++ linux-2.6.1/net/decnet/dn_route.c 2004-01-31 11:34:38.000000000 +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)
next prev parent reply other threads:[~2004-01-31 11:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-26 11:31 [PATCH] 1/2 DECnet fix SDF_WILD Patrick Caulfield
2004-01-30 20:43 ` David S. Miller
2004-01-31 11:41 ` Patrick Caulfield [this message]
2004-02-01 1:49 ` David S. Miller
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=20040131114101.GA3224@tykepenguin.com \
--to=pcaulfie@redhat.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.