Commit e823eaed authored by Maksim Krasnyanskiy's avatar Maksim Krasnyanskiy

[Bluetooth] Initialize net_proto_family->owner field. This covers only HCI sockets.

Other protocols cannot be fixes at this point because current net_proto_family
code does not support "family owner != socket owner" case.
parent 526e4dcf
......@@ -321,6 +321,7 @@ int bt_sock_w4_connect(struct sock *sk, int flags)
}
struct net_proto_family bt_sock_family_ops = {
.owner = THIS_MODULE,
.family = PF_BLUETOOTH,
.create = bt_sock_create,
};
......
......@@ -161,8 +161,6 @@ static int hci_sock_release(struct socket *sock)
skb_queue_purge(&sk->write_queue);
sock_put(sk);
MOD_DEC_USE_COUNT;
return 0;
}
......@@ -591,8 +589,6 @@ static int hci_sock_create(struct socket *sock, int protocol)
sk->state = BT_OPEN;
bt_sock_link(&hci_sk_list, sk);
MOD_INC_USE_COUNT;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment