Commit be48be08a829db09a4f786f44a1872ef0f533c85
Committed by
David S. Miller
1 parent
51c739d1f4
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/compat_ioctl.c
... | ... | @@ -322,7 +322,7 @@ |
322 | 322 | int err; |
323 | 323 | |
324 | 324 | uifr = compat_alloc_user_space(sizeof(struct ifreq)); |
325 | - if (copy_in_user(uifr, compat_ptr(arg), sizeof(struct ifreq32))); | |
325 | + if (copy_in_user(uifr, compat_ptr(arg), sizeof(struct ifreq32))) | |
326 | 326 | return -EFAULT; |
327 | 327 | |
328 | 328 | err = sys_ioctl(fd, SIOCGIFNAME, (unsigned long)uifr); |