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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:53:44 +0000 (10:53 +0100)
commitcb5813b0e5918b4ea5a863f2b66458c6aaa0a654
tree27e66d6ce4274043be15f0314ef78c7985158591
parented0b1fd3ec6e4a033c07b023153248ca1837ec79
Bluetooth: L2CAP: Fix not initializing sk_peer_pid

[ Upstream commit f5ff291098f70a70b344df1e388596755c3c8315 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/l2cap_sock.c