]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[IPV4] ipconfig: fix RARP ic_servaddr breakage
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 24 Oct 2006 22:18:36 +0000 (15:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2006 22:18:36 +0000 (15:18 -0700)
memcpy 4 bytes to address of auto unsigned long variable followed
by comparison with u32 is a bloody bad idea.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c

index f8ce8475915966c7d10abbec1542f71b1ac10d0d..955a07abb91df159ff5ba7765e45079f475ff609 100644 (file)
@@ -420,7 +420,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
 {
        struct arphdr *rarp;
        unsigned char *rarp_ptr;
-       unsigned long sip, tip;
+       u32 sip, tip;
        unsigned char *sha, *tha;               /* s for "source", t for "target" */
        struct ic_device *d;