Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

appletalk:: da.s_net not copied but assigned to itself in aarp_rcv()

da.s_net was not copied but assigned to itself.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Roel Kluin and committed by
David S. Miller
2a04cd4c 9fe3b691

+1 -1
+1 -1
net/appletalk/aarp.c
··· 819 819 ma = &ifa->address; 820 820 else { /* We need to make a copy of the entry. */ 821 821 da.s_node = sa.s_node; 822 - da.s_net = da.s_net; 822 + da.s_net = sa.s_net; 823 823 ma = &da; 824 824 } 825 825