mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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>
This commit is contained in:
parent
51c739d1f4
commit
be48be08a8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue