netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [sparse] rtentry->rt_dev is __user
@ 2004-06-22 22:54 Stephen Hemminger
  2004-06-23  0:09 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-06-22 22:54 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

The device entry in the route ioctl's needs annotation.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

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 :-(            */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [sparse] rtentry->rt_dev is __user
  2004-06-22 22:54 [PATCH] [sparse] rtentry->rt_dev is __user Stephen Hemminger
@ 2004-06-23  0:09 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-06-23  0:09 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Tue, 22 Jun 2004 15:54:53 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:

> The device entry in the route ioctl's needs annotation.
> 
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-23  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 22:54 [PATCH] [sparse] rtentry->rt_dev is __user Stephen Hemminger
2004-06-23  0:09 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).