Skip to contentSkip to conversation

Bluetooth: mt7921s: Fix the incorrect pointer check

PATCH Applied [email protected] 4 participants 4 messages Mar 22, 2022 – Mar 23, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: mt7921s: Fix the incorrect pointer check

From: Sean Wang <[email protected]>

Fix the incorrect pointer check on ven_data.

Fixes f41b91fa1783 ("Bluetooth: mt7921s: Add .btmtk_get_codec_config_data")
---
 drivers/bluetooth/btmtksdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btmtksdio.c +1 -1
index f3dc5881fff7..b6d77e04240c 100644
@@ -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;
 	}
Signature · 1 line
2.25.1
#1 lore raw

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----
error: patch failed: drivers/bluetooth/btmtksdio.c:961
error: drivers/bluetooth/btmtksdio.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.

---
Regards,
Linux Bluetooth

maintainer
#2 lore raw
In reply to [email protected]

Hi Sean,

Quoted 9 lines

Fix the incorrect pointer check on ven_data.

Fixes f41b91fa1783 ("Bluetooth: mt7921s: Add .btmtk_get_codec_config_data")

---
drivers/bluetooth/btmtksdio.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

#3 lore raw
In reply to [email protected]
This patch was applied to bluetooth/bluetooth-next.git (master) by Marcel Holtmann <[email protected]>:

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master) by Marcel Holtmann <[email protected]>:

Quoted 10 lines · On Wed, 23 Mar 2022 07:30:40 +0800 you wrote:

From: Sean Wang <[email protected]>

Fix the incorrect pointer check on ven_data.

Fixes f41b91fa1783 ("Bluetooth: mt7921s: Add .btmtk_get_codec_config_data")

[...]

Here is the summary with links:
- Bluetooth: mt7921s: Fix the incorrect pointer check

    https://git.kernel.org/bluetooth/bluetooth-next/c/864cc8a234cd

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html