[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220322023630.1239271-1-liaoyu15@huawei.com>
Date: Tue, 22 Mar 2022 10:36:30 +0800
From: Yu Liao <liaoyu15@...wei.com>
To: <yake.yang@...iatek.com>, <marcel@...tmann.org>,
<linux-kernel@...r.kernel.org>
CC: <liaoyu15@...wei.com>, <liwei391@...wei.com>
Subject: [PATCH] Bluetooth: mt7921s: Fix a wrong judgment in btmtksdio_get_codec_config_data()
Since ven_data is a double pointer, it should be *ven_data here.
Fixes: f41b91fa1783 ("Bluetooth: mt7921s: Add .btmtk_get_codec_config_data")
Signed-off-by: Yu Liao <liaoyu15@...wei.com>
---
drivers/bluetooth/btmtksdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c
index f3dc5881fff7..b6d77e04240c 100644
--- a/drivers/bluetooth/btmtksdio.c
+++ b/drivers/bluetooth/btmtksdio.c
@@ -961,7 +961,7 @@ static int btmtksdio_get_codec_config_data(struct hci_dev *hdev,
}
*ven_data = kmalloc(sizeof(__u8), GFP_KERNEL);
- if (!ven_data) {
+ if (!*ven_data) {
err = -ENOMEM;
goto error;
}
--
2.25.1
Powered by blists - more mailing lists