]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2e738c7b10fd8a10475b89e5cf70ade9c0b3abb
treeff7c46add3e5b0ba9904cc8c54747e8f62688877
parent01ba9b679ca836a019608eee21726fbdbc230878
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: 5269259fa95b ("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