You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
net: Add a struct net parameter to sock_create_kern
This is long overdue, and is part of cleaning up how we allocate kernel sockets that don't reference count struct net. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
140e807da1
commit
eeb1bd5c40
@@ -200,7 +200,7 @@ static int rfcomm_l2sock_create(struct socket **sock)
|
||||
|
||||
BT_DBG("");
|
||||
|
||||
err = sock_create_kern(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP, sock);
|
||||
err = sock_create_kern(&init_net, PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP, sock);
|
||||
if (!err) {
|
||||
struct sock *sk = (*sock)->sk;
|
||||
sk->sk_data_ready = rfcomm_l2data_ready;
|
||||
|
||||
Reference in New Issue
Block a user