Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv()

0 views
Skip to first unread message

Roel Kluin

unread,
Jan 14, 2010, 3:30:02 PM1/14/10
to
da.s_net was not copied but assigned to itself.

Signed-off-by: Roel Kluin <roel....@gmail.com>
---
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c
index 9d4adfd..f2b3b56 100644
--- a/net/appletalk/aarp.c
+++ b/net/appletalk/aarp.c
@@ -819,7 +819,7 @@ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev,
ma = &ifa->address;
else { /* We need to make a copy of the entry. */
da.s_node = sa.s_node;
- da.s_net = da.s_net;
+ da.s_net = sa.s_net;
ma = &da;
}

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

Arnaldo Carvalho de Melo

unread,
Jan 14, 2010, 4:10:02 PM1/14/10
to
Em Thu, Jan 14, 2010 at 09:32:11PM +0100, Roel Kluin escreveu:
> da.s_net was not copied but assigned to itself.
>
> Signed-off-by: Roel Kluin <roel....@gmail.com>

Looks right, must be there for ages...

Acked-by: Arnaldo Carvalho de Melo <ac...@redhat.com>

David Miller

unread,
Jan 15, 2010, 4:50:02 AM1/15/10
to
From: Arnaldo Carvalho de Melo <ac...@ghostprotocols.net>
Date: Thu, 14 Jan 2010 19:00:01 -0200

> Em Thu, Jan 14, 2010 at 09:32:11PM +0100, Roel Kluin escreveu:
>> da.s_net was not copied but assigned to itself.
>>
>> Signed-off-by: Roel Kluin <roel....@gmail.com>
>
> Looks right, must be there for ages...
>
> Acked-by: Arnaldo Carvalho de Melo <ac...@redhat.com>

Applied, please always CC: on networking patches.

Thanks.

Jonathan Nieder

unread,
Mar 2, 2012, 2:40:01 PM3/2/12
to
Hi Dave,

David Miller wrote:
>> Em Thu, Jan 14, 2010 at 09:32:11PM +0100, Roel Kluin escreveu:

>>> da.s_net was not copied but assigned to itself.
>>>
>>> Signed-off-by: Roel Kluin <roel....@gmail.com>
[...]
> Applied, please always CC: on networking patches.

Thanks.

Without this patch (commit 2a04cd4c7 aka v2.6.33-rc6~29^2~33), Mason
(cc-ed) is not able to use appletalk[1]:

| With Linux 2.6.32 as supplied with Debian Squeeze, Netatalk is unable
| to thrive. Connections made to afpd will open, but attempting to transfer
| files will take a very long time and/or eventually time out.
|
| I've noted this with both Netatalk as supplied with Squeeze and with
| Netatalk 2.2.1 built from the Wheezy source package, which I evidently
| need for AFP 3 support.
|
| Installing Linux 3.2 from backports, with no other changes to the system,
| allows afpd to work correctly.

Ben sent a copy of this patch to try against 2.6.32.y and it worked.
Would it be possible to include this in the 2.6.32.y-longterm tree?

Sincerely,
Jonathan

[1] http://bugs.debian.org/660902
0 new messages