net: rename sk_clone to sk_clone_lock
Make clear that sk_clone() and inet_csk_clone() return a locked socket. Add _lock() prefix and kerneldoc. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9ecd04bc04
commit
e56c57d0d3
@@ -100,7 +100,7 @@ struct sock *dccp_create_openreq_child(struct sock *sk,
|
||||
* (* Generate a new socket and switch to that socket *)
|
||||
* Set S := new socket for this port pair
|
||||
*/
|
||||
struct sock *newsk = inet_csk_clone(sk, req, GFP_ATOMIC);
|
||||
struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
|
||||
|
||||
if (newsk != NULL) {
|
||||
struct dccp_request_sock *dreq = dccp_rsk(req);
|
||||
|
Reference in New Issue
Block a user