Re: [syzbot] [bluetooth?] [usb?] memory leak in __hci_cmd_sync_sk
From: Edward Adam Davis
Date: Mon Nov 17 2025 - 22:40:42 EST
#syz test
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 6e76798ec786..81fb553ceb56 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -201,7 +201,7 @@ struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
bt_dev_dbg(hdev, "end: err %d", err);
- if (err < 0) {
+ if (err <= 0) {
kfree_skb(skb);
return ERR_PTR(err);
}