Commit d99901d6 authored by Kirill Korotaev's avatar Kirill Korotaev Committed by Linus Torvalds

[PATCH] Lost sockfd_put() in routing_ioctl()

This patch adds lost sockfd_put() in 32bit compat rounting_ioctl() on
64bit platforms
Signed-Off-By: default avatarKirill Korotaev <dev@sw.ru>
Signed-Off-By: default avatarMaxim Giryaev <gem@sw.ru>
Signed-off-By: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35311d64
...@@ -798,13 +798,16 @@ static int routing_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) ...@@ -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);
......
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