Re: [syzbot] Re: [syzbot] [bluetooth?] general protection fault in bcsp_close
From: syzbot
Date: Thu Feb 20 2025 - 20:01:36 EST
For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.
***
Subject: Re: [syzbot] [bluetooth?] general protection fault in bcsp_close
Author: lizhi.xu@xxxxxxxxxxxxx
#syz test
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index acba83156de9..18793c485319 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -716,6 +716,7 @@ static int hci_uart_set_proto(struct hci_uart *hu, int id)
err = hci_uart_register_dev(hu);
if (err) {
+ clear_bit(HCI_UART_PROTO_INIT, &hu->flags);
return err;
}