public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv()
@ 2010-01-14 20:32 Roel Kluin
  2010-01-14 21:00 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Roel Kluin @ 2010-01-14 20:32 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Andrew Morton, LKML

da.s_net was not copied but assigned to itself.

Signed-off-by: Roel Kluin <roel.kluin@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;
 			}
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv()
  2010-01-14 20:32 [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv() Roel Kluin
@ 2010-01-14 21:00 ` Arnaldo Carvalho de Melo
  2010-01-15  9:49   ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-01-14 21:00 UTC (permalink / raw)
  To: Roel Kluin; +Cc: Andrew Morton, LKML, Linux Networking Development Mailing List

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.kluin@gmail.com>

Looks right, must be there for ages...

Acked-by: Arnaldo Carvalho de Melo <acme@redhat.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;
>  			}
>  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv()
  2010-01-14 21:00 ` Arnaldo Carvalho de Melo
@ 2010-01-15  9:49   ` David Miller
  2012-03-02 19:34     ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2010-01-15  9:49 UTC (permalink / raw)
  To: acme; +Cc: roel.kluin, akpm, linux-kernel, netdev

From: Arnaldo Carvalho de Melo <acme@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.kluin@gmail.com>
> 
> Looks right, must be there for ages...
> 
> Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Applied, please always CC: on networking patches.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv()
  2010-01-15  9:49   ` David Miller
@ 2012-03-02 19:34     ` Jonathan Nieder
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Nieder @ 2012-03-02 19:34 UTC (permalink / raw)
  To: David Miller
  Cc: acme, roel.kluin, akpm, linux-kernel, netdev, Mason Loring Bliss,
	Ben Hutchings

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.kluin@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-02 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 20:32 [PATCH] [NET]: da.s_net not copied but assigned to itself in aarp_rcv() Roel Kluin
2010-01-14 21:00 ` Arnaldo Carvalho de Melo
2010-01-15  9:49   ` David Miller
2012-03-02 19:34     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox