* [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref
@ 2024-05-02 17:17 Sungwoo Kim
2024-05-02 21:00 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Sungwoo Kim @ 2024-05-02 17:17 UTC (permalink / raw)
To: luiz.dentz
Cc: daveti, benquike, Sungwoo Kim, Marcel Holtmann, Johan Hedberg,
Iulia Tanasescu, linux-bluetooth, linux-kernel
Fix potential null-ptr-deref in hci_le_big_sync_established_evt().
Fixes: f777d8827817 ("Bluetooth: ISO: Notify user space about failed bis connections")
Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
---
v1 -> v2:
- add a Fixes tag
- make the commit message concise
v2 -> v3:
- fix a wrong Fixes tag format
net/bluetooth/hci_event.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 4a27e4a17..d72d238c1 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -7037,6 +7037,8 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
u16 handle = le16_to_cpu(ev->bis[i]);
bis = hci_conn_hash_lookup_handle(hdev, handle);
+ if (!bis)
+ continue;
set_bit(HCI_CONN_BIG_SYNC_FAILED, &bis->flags);
hci_connect_cfm(bis, ev->status);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref
2024-05-02 17:17 [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref Sungwoo Kim
@ 2024-05-02 21:00 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2024-05-02 21:00 UTC (permalink / raw)
To: Sungwoo Kim
Cc: luiz.dentz, daveti, benquike, marcel, johan.hedberg,
iulia.tanasescu, linux-bluetooth, linux-kernel
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 2 May 2024 13:17:10 -0400 you wrote:
> Fix potential null-ptr-deref in hci_le_big_sync_established_evt().
>
> Fixes: f777d8827817 ("Bluetooth: ISO: Notify user space about failed bis connections")
> Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
> ---
> v1 -> v2:
> - add a Fixes tag
> - make the commit message concise
> v2 -> v3:
> - fix a wrong Fixes tag format
>
> [...]
Here is the summary with links:
- [v3] Bluetooth: HCI: Fix potential null-ptr-deref
https://git.kernel.org/bluetooth/bluetooth-next/c/5c7d0f260187
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-02 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02 17:17 [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref Sungwoo Kim
2024-05-02 21:00 ` patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox