提交 d99901d6 编写于 作者: K Kirill Korotaev 提交者: 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: NKirill Korotaev <dev@sw.ru>
Signed-Off-By: NMaxim Giryaev <gem@sw.ru>
Signed-off-By: NLinus Torvalds <torvalds@osdl.org>
上级 35311d64
......@@ -798,13 +798,16 @@ static int routing_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
r = (void *) &r4;
}
if (ret)
return -EFAULT;
if (ret) {
ret = -EFAULT;
goto out;
}
set_fs (KERNEL_DS);
ret = sys_ioctl (fd, cmd, (unsigned long) r);
set_fs (old_fs);
out:
if (mysock)
sockfd_put(mysock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册