mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
All of the conflicts were cases of overlapping changes. In net/core/devlink.c, we have to make care that the resouce size_params have become a struct member rather than a pointer to such an object. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
0f3e9c97eb
484 changed files with 4721 additions and 2550 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2006 Oracle. All rights reserved.
|
||||
* Copyright (c) 2006, 2018 Oracle. All rights reserved.
|
||||
*
|
||||
* This software is available to you under a choice of one of two
|
||||
* licenses. You may choose to be licensed under the terms of the GNU
|
||||
|
|
@ -142,12 +142,20 @@ int rds_tcp_accept_one(struct socket *sock)
|
|||
if (ret)
|
||||
goto out;
|
||||
|
||||
new_sock->type = sock->type;
|
||||
new_sock->ops = sock->ops;
|
||||
ret = sock->ops->accept(sock, new_sock, O_NONBLOCK, true);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
/* sock_create_lite() does not get a hold on the owner module so we
|
||||
* need to do it here. Note that sock_release() uses sock->ops to
|
||||
* determine if it needs to decrement the reference count. So set
|
||||
* sock->ops after calling accept() in case that fails. And there's
|
||||
* no need to do try_module_get() as the listener should have a hold
|
||||
* already.
|
||||
*/
|
||||
new_sock->ops = sock->ops;
|
||||
__module_get(new_sock->ops->owner);
|
||||
|
||||
ret = rds_tcp_keepalive(new_sock);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue