projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7059abe
)
[IPV4] ipconfig: fix RARP ic_servaddr breakage
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 24 Oct 2006 22:18:36 +0000
(15:18 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ipconfig.c
b/net/ipv4/ipconfig.c
index f8ce8475915966c7d10abbec1542f71b1ac10d0d..955a07abb91df159ff5ba7765e45079f475ff609 100644
(file)
--- a/
net/ipv4/ipconfig.c
+++ b/
net/ipv4/ipconfig.c
@@
-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;
- u
nsigned long
sip, tip;
+ u
32
sip, tip;
unsigned char *sha, *tha; /* s for "source", t for "target" */
struct ic_device *d;