Skip to content

Commit b0691c8

Browse files
KAGA-KOKOdavem330
authored andcommitted
net: Unlock sock before calling sk_free()
Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7670c70 commit b0691c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/core/sock.c

+1
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
12571257
/* It is still raw copy of parent, so invalidate
12581258
* destructor and make plain sk_free() */
12591259
newsk->sk_destruct = NULL;
1260+
bh_unlock_sock(newsk);
12601261
sk_free(newsk);
12611262
newsk = NULL;
12621263
goto out;

0 commit comments

Comments
 (0)