netdev
[Top] [All Lists]

[PATCH] [sparse] missing annotation in ipv6 addrconf

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] [sparse] missing annotation in ipv6 addrconf
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Mon, 12 Jul 2004 15:04:44 -0700
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
Missing __user annotation in simulated ioctl call.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>

diff -Nru a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
--- a/net/ipv6/addrconf.c       2004-07-12 15:02:04 -07:00
+++ b/net/ipv6/addrconf.c       2004-07-12 15:02:04 -07:00
@@ -1544,7 +1544,7 @@
                p.iph.ihl = 5;
                p.iph.protocol = IPPROTO_IPV6;
                p.iph.ttl = 64;
-               ifr.ifr_ifru.ifru_data = (void*)&p;
+               ifr.ifr_ifru.ifru_data = (void __user *)&p;
 
                oldfs = get_fs(); set_fs(KERNEL_DS);
                err = dev->do_ioctl(dev, &ifr, SIOCADDTUNNEL);

<Prev in Thread] Current Thread [Next in Thread>