From 7425fae2c6aa45241385dd27bb1ba70966e76c2a Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sat, 29 May 2004 04:44:03 -0700 Subject: [PATCH] [PATCH] sparse: final bits of compat_ioctl ethtool_ioctl() annotated; it would go in the first compat_ioctl chunk (trivial ones) if it wouldn't be right after SIOCGIFCONF mess; was easier to split in that order... --- fs/compat_ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index e6e436e52954b..c14b9cd979d64 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -559,10 +559,10 @@ static int dev_ifconf(unsigned int fd, unsigned int cmd, unsigned long arg) static int ethtool_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) { - struct ifreq *ifr; - struct ifreq32 *ifr32; + struct ifreq __user *ifr; + struct ifreq32 __user *ifr32; u32 data; - void *datap; + void __user *datap; ifr = compat_alloc_user_space(sizeof(*ifr)); ifr32 = compat_ptr(arg); -- 2.53.0