[PATCH] Lost sockfd_put() in routing_ioctl()
This patch adds lost sockfd_put() in 32bit compat rounting_ioctl() on 64bit platforms Signed-Off-By: Kirill Korotaev <dev@sw.ru> Signed-Off-By: Maxim Giryaev <gem@sw.ru> Signed-off-By: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
35311d6478
commit
d99901d6fd
@ -798,13 +798,16 @@ static int routing_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
|
|||||||
r = (void *) &r4;
|
r = (void *) &r4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret)
|
if (ret) {
|
||||||
return -EFAULT;
|
ret = -EFAULT;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
set_fs (KERNEL_DS);
|
set_fs (KERNEL_DS);
|
||||||
ret = sys_ioctl (fd, cmd, (unsigned long) r);
|
ret = sys_ioctl (fd, cmd, (unsigned long) r);
|
||||||
set_fs (old_fs);
|
set_fs (old_fs);
|
||||||
|
|
||||||
|
out:
|
||||||
if (mysock)
|
if (mysock)
|
||||||
sockfd_put(mysock);
|
sockfd_put(mysock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user