summaryrefslogtreecommitdiffstats
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-10-30 20:40:45 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-30 21:29:42 -0700
commitbe48be08a829db09a4f786f44a1872ef0f533c85 (patch)
treef9d32e4c00eb8d08ac0a765182a64d7fc62e2971 /fs/compat_ioctl.c
parent51c739d1f484b2562040a3e496dc8e1670d4e279 (diff)
downloadlinux-be48be08a829db09a4f786f44a1872ef0f533c85.tar.gz
linux-be48be08a829db09a4f786f44a1872ef0f533c85.tar.bz2
linux-be48be08a829db09a4f786f44a1872ef0f533c85.zip
[COMPAT]: Fix new dev_ifname32 returning -EFAULT
A stray semicolon slipped in the patch that updated dev_ifname32 to not be inline, causing it to always return -EFAULT. This fixes it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index a4284ccac1f9..bd26e4cbb994 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -322,7 +322,7 @@ static int dev_ifname32(unsigned int fd, unsigned int cmd, unsigned long arg)
int err;
uifr = compat_alloc_user_space(sizeof(struct ifreq));
- if (copy_in_user(uifr, compat_ptr(arg), sizeof(struct ifreq32)));
+ if (copy_in_user(uifr, compat_ptr(arg), sizeof(struct ifreq32)))
return -EFAULT;
err = sys_ioctl(fd, SIOCGIFNAME, (unsigned long)uifr);