Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);