瀏覽代碼

net: Unlock sock before calling sk_free()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Thomas Gleixner 13 年之前
父節點
當前提交
b0691c8ee7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/sock.c

+ 1 - 0
net/core/sock.c

@@ -1257,6 +1257,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
 			/* It is still raw copy of parent, so invalidate
 			/* It is still raw copy of parent, so invalidate
 			 * destructor and make plain sk_free() */
 			 * destructor and make plain sk_free() */
 			newsk->sk_destruct = NULL;
 			newsk->sk_destruct = NULL;
+			bh_unlock_sock(newsk);
 			sk_free(newsk);
 			sk_free(newsk);
 			newsk = NULL;
 			newsk = NULL;
 			goto out;
 			goto out;