Commit c51fd78e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[NET]: rtentry->rt_dev is __user.

The device entry in the route ioctl's needs annotation.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent ec50d2c5
......@@ -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 @@ struct rtentry
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 :-( */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment