* [PATCH] 1/2 DECnet fix SDF_WILD
@ 2004-01-26 11:31 Patrick Caulfield
2004-01-30 20:43 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2004-01-26 11:31 UTC (permalink / raw)
To: davem, linux-kernel; +Cc: Steve Whitehouse
This patch fixes the operation of SDF_WILD sockets on Linux 2.6.0/1
(they don't currently work at all).
--- net/decnet/af_decnet.c.orig 2003-12-08 11:27:59.000000000 +0000
+++ net/decnet/af_decnet.c 2003-12-08 11:28:34.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];
}
patrick
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] 1/2 DECnet fix SDF_WILD
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
0 siblings, 1 reply; 4+ messages in thread
From: David S. Miller @ 2004-01-30 20:43 UTC (permalink / raw)
To: Patrick Caulfield; +Cc: linux-kernel, Steve
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.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] 1/2 DECnet fix SDF_WILD
2004-01-30 20:43 ` David S. Miller
@ 2004-01-31 11:41 ` Patrick Caulfield
2004-02-01 1:49 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2004-01-31 11:41 UTC (permalink / raw)
To: David S. Miller; +Cc: linux-kernel, Steve
[-- 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)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-01 1:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-02-01 1:49 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox