Merge 69f637c335 ("Merge tag 'for-5.11/drivers-2020-12-14' of git://git.kernel.dk/linux-block") into android-mainline
Steps on the way to 5.11-rc1 Resolves conflicts in: arch/arm64/include/asm/thread_info.h fs/proc/base.c Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ibc53e7c14fc0953a95f89af81b0e0373ddad986a
This commit is contained in:
15
net/socket.c
15
net/socket.c
@@ -2176,6 +2176,17 @@ SYSCALL_DEFINE5(getsockopt, int, fd, int, level, int, optname,
|
||||
* Shutdown a socket.
|
||||
*/
|
||||
|
||||
int __sys_shutdown_sock(struct socket *sock, int how)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = security_socket_shutdown(sock, how);
|
||||
if (!err)
|
||||
err = sock->ops->shutdown(sock, how);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
int __sys_shutdown(int fd, int how)
|
||||
{
|
||||
int err, fput_needed;
|
||||
@@ -2183,9 +2194,7 @@ int __sys_shutdown(int fd, int how)
|
||||
|
||||
sock = sockfd_lookup_light(fd, &err, &fput_needed);
|
||||
if (sock != NULL) {
|
||||
err = security_socket_shutdown(sock, how);
|
||||
if (!err)
|
||||
err = sock->ops->shutdown(sock, how);
|
||||
err = __sys_shutdown_sock(sock, how);
|
||||
fput_light(sock->file, fput_needed);
|
||||
}
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user