Commit 7425fae2 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[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...
parent 59e67606
...@@ -559,10 +559,10 @@ static int dev_ifconf(unsigned int fd, unsigned int cmd, unsigned long arg) ...@@ -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) static int ethtool_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
{ {
struct ifreq *ifr; struct ifreq __user *ifr;
struct ifreq32 *ifr32; struct ifreq32 __user *ifr32;
u32 data; u32 data;
void *datap; void __user *datap;
ifr = compat_alloc_user_space(sizeof(*ifr)); ifr = compat_alloc_user_space(sizeof(*ifr));
ifr32 = compat_ptr(arg); ifr32 = compat_ptr(arg);
......
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