]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix crash when using new BT_PHY option
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 18 Feb 2020 18:33:20 +0000 (10:33 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2020 21:02:15 +0000 (22:02 +0100)
commit7b756fe5051a6512100dfa6966b9b28ac3e75ef4
tree4f28f0c6189d7c49c2c6b804377198b17b00d190
parent15900d26a4118356d5692a6e85eb608ce43a5b03
Bluetooth: Fix crash when using new BT_PHY option

This fixes the invalid check for connected socket which causes the
following trace due to sco_pi(sk)->conn being NULL:

RIP: 0010:sco_sock_getsockopt+0x2ff/0x800 net/bluetooth/sco.c:966

L2CAP has also been fixed since it has the same problem.

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
net/bluetooth/sco.c