mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: socket: replace call to sys_recv() with __sys_recvfrom()
sys_recv() merely expands the parameters to __sys_recvfrom() by NULL and NULL. Open-code this in the two places which used sys_recv() as a wrapper to __sys_recvfrom(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/[email protected] Cc: David S. Miller <[email protected]> Cc: [email protected] Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
f3bf896b1d
commit
d27e9afc64
2 changed files with 4 additions and 2 deletions
|
|
@ -755,7 +755,8 @@ COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, uns
|
|||
|
||||
COMPAT_SYSCALL_DEFINE4(recv, int, fd, void __user *, buf, compat_size_t, len, unsigned int, flags)
|
||||
{
|
||||
return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT);
|
||||
return __sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
COMPAT_SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, buf, compat_size_t, len,
|
||||
|
|
|
|||
Loading…
Reference in a new issue