[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231018095339.199956-1-youwan@nfschina.com>
Date: Wed, 18 Oct 2023 17:53:39 +0800
From: youwan@...china.com
To: marcel@...tmann.org
Cc: linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org,
youwan Wang <youwan@...china.com>
Subject: [PATCH] Bluetooth:btusb: Add return error code
From: youwan Wang <youwan@...china.com>
Add return error code
Signed-off-by: youwan Wang <youwan@...china.com>
---
drivers/bluetooth/btusb.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index b8e9de887b5d..ec6bdc9687b1 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2826,8 +2826,10 @@ static int btusb_mtk_hci_wmt_sync(struct hci_dev *hdev,
goto err_free_wc;
}
- if (data->evt_skb == NULL)
+ if (data->evt_skb == NULL) {
+ err = -ENOBUFS;
goto err_free_wc;
+ }
/* Parse and handle the return WMT event */
wmt_evt = (struct btmtk_hci_wmt_evt *)data->evt_skb->data;
--
2.25.1
Powered by blists - more mailing lists