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

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