netdev
[Top] [All Lists]

[PATCH] [sparse] rtentry->rt_dev is __user

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] [sparse] rtentry->rt_dev is __user
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Tue, 22 Jun 2004 15:54:53 -0700
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
The device entry in the route ioctl's needs annotation.

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

diff -Nru a/include/linux/route.h b/include/linux/route.h
--- a/include/linux/route.h     2004-06-22 15:49:41 -07:00
+++ b/include/linux/route.h     2004-06-22 15:49:41 -07:00
@@ -24,7 +24,7 @@
 #define _LINUX_ROUTE_H
 
 #include <linux/if.h>
-
+#include <linux/compiler.h>
 
 /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
 struct rtentry 
@@ -38,7 +38,7 @@
        unsigned long   rt_pad3;
        void            *rt_pad4;
        short           rt_metric;      /* +1 for binary compatibility! */
-       char            *rt_dev;        /* forcing the device at add    */
+       char __user     *rt_dev;        /* forcing the device at add    */
        unsigned long   rt_mtu;         /* per route MTU/Window         */
 #ifndef __KERNEL__
 #define rt_mss rt_mtu                  /* Compatibility :-(            */

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