diff options
| author | Arjan van de Ven <arjanv@redhat.com> | 2004-04-15 23:56:23 -0700 |
|---|---|---|
| committer | Stephen Hemminger <shemminger@osdl.org> | 2004-04-15 23:56:23 -0700 |
| commit | 64b0f9e29e5a4b02077d0d048865e7bd44036715 (patch) | |
| tree | 70d9c5064bcda634f427ad85508a00dddf6eb146 /net/core/dev.c | |
| parent | ea38ba8c40b4b81991112d792387d739951bbd1f (diff) | |
[NET]: Add some sparse annotations to network driver stack.
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index ff9defc681d7..ef7eb00b09d8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1903,7 +1903,7 @@ int register_gifconf(unsigned int family, gifconf_func_t * gifconf) * match. --pb */ -static int dev_ifname(struct ifreq *arg) +static int dev_ifname(struct ifreq __user *arg) { struct net_device *dev; struct ifreq ifr; @@ -1936,7 +1936,7 @@ static int dev_ifname(struct ifreq *arg) * Thus we will need a 'compatibility mode'. */ -static int dev_ifconf(char *arg) +static int dev_ifconf(char __user *arg) { struct ifconf ifc; struct net_device *dev; @@ -2539,7 +2539,7 @@ static int dev_ifsioc(struct ifreq *ifr, unsigned int cmd) * positive or a negative errno code on error. */ -int dev_ioctl(unsigned int cmd, void *arg) +int dev_ioctl(unsigned int cmd, void __user *arg) { struct ifreq ifr; int ret; @@ -2552,12 +2552,12 @@ int dev_ioctl(unsigned int cmd, void *arg) if (cmd == SIOCGIFCONF) { rtnl_shlock(); - ret = dev_ifconf((char *) arg); + ret = dev_ifconf((char __user *) arg); rtnl_shunlock(); return ret; } if (cmd == SIOCGIFNAME) - return dev_ifname((struct ifreq *)arg); + return dev_ifname((struct ifreq __user *)arg); if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) return -EFAULT; |
