Bluetooth: L2CAP: Fix not initializing sk_peer_pid
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 7 Oct 2021 20:26:25 +0000 (13:26 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 12 Oct 2021 15:31:43 +0000 (17:31 +0200)
commitf5ff291098f70a70b344df1e388596755c3c8315
treeff7c46add3e5b0ba9904cc8c54747e8f62688877
parent709fca500067524381e28a5f481882930eebac88
Bluetooth: L2CAP: Fix not initializing sk_peer_pid

In order to group sockets being connected using L2CAP_MODE_EXT_FLOWCTL
the pid is used but sk_peer_pid was not being initialized as it is
currently only done for af_unix.

Fixes: b48596d1dc25 ("Bluetooth: L2CAP: Add get_peer_pid callback")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c