Re: [PATCH v2] Bluetooth: RFCOMM: fix NULL dereference of dlc->session in RFCOMM_CONNINFO
From: patchwork-bot+bluetooth
Date: Mon Sep 21 2026 - 10:46:31 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Sat, 19 Sep 2026 11:25:18 +0000 you wrote:
> The RFCOMM_CONNINFO getsockopt handler accepts a socket that is not
> connected as long as deferred setup is enabled:
>
> if (sk->sk_state != BT_CONNECTED &&
> !rfcomm_pi(sk)->dlc->defer_setup) {
> err = -ENOTCONN;
> break;
> }
> l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk;
>
> [...]
Here is the summary with links:
- [v2] Bluetooth: RFCOMM: fix NULL dereference of dlc->session in RFCOMM_CONNINFO
https://git.kernel.org/bluetooth/bluetooth-next/c/46f8ffd0a1f1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html