* [PATCH BlueZ] hciemu: fix accessing wrong/uninitialized variables
@ 2025-04-28 17:18 Pauli Virtanen
2025-04-28 18:47 ` [BlueZ] " bluez.test.bot
2025-04-28 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2025-04-28 17:18 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
Fixes: aeeb4fd64adf ("hciemu: set bthost ACL MTU to match btdev")
Fixes: a112d4345771 ("bthost: implement fragmenting to ACL MTU")
---
emulator/btdev.c | 2 +-
emulator/bthost.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emulator/btdev.c b/emulator/btdev.c
index cf5c36bb4..7bb40670c 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -7466,7 +7466,7 @@ void btdev_get_mtu(struct btdev *btdev, uint16_t *acl, uint16_t *sco,
if (acl)
*acl = btdev->acl_mtu;
if (sco)
- *acl = btdev->sco_mtu;
+ *sco = btdev->sco_mtu;
if (iso)
*iso = btdev->iso_mtu;
}
diff --git a/emulator/bthost.c b/emulator/bthost.c
index 214583cc5..f53b4382d 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -688,7 +688,7 @@ static void send_iov(struct bthost *bthost, uint16_t handle, uint16_t cid,
/* Fragment to ACL MTU */
- payload_mtu = bthost->acl_mtu - pdu[0].iov_len - pdu[1].iov_len;
+ payload_mtu = bthost->acl_mtu - sizeof(pkt) - sizeof(acl_hdr);
flag = 0x00;
do {
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] hciemu: fix accessing wrong/uninitialized variables
2025-04-28 17:18 [PATCH BlueZ] hciemu: fix accessing wrong/uninitialized variables Pauli Virtanen
@ 2025-04-28 18:47 ` bluez.test.bot
2025-04-28 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-04-28 18:47 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=957795
---Test result---
Test Summary:
CheckPatch PENDING 0.27 seconds
GitLint PENDING 0.25 seconds
BuildEll PASS 20.55 seconds
BluezMake PASS 2740.41 seconds
MakeCheck PASS 20.30 seconds
MakeDistcheck PASS 199.19 seconds
CheckValgrind PASS 278.47 seconds
CheckSmatch WARNING 303.52 seconds
bluezmakeextell PASS 131.10 seconds
IncrementalBuild PENDING 0.24 seconds
ScanBuild PASS 935.86 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
emulator/btdev.c:453:29: warning: Variable length array is used.emulator/bthost.c:668:28: warning: Variable length array is used.emulator/bthost.c:669:32: warning: Variable length array is used.emulator/bthost.c:886:28: warning: Variable length array is used.emulator/bthost.c:920:28: warning: Variable length array is used.
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] hciemu: fix accessing wrong/uninitialized variables
2025-04-28 17:18 [PATCH BlueZ] hciemu: fix accessing wrong/uninitialized variables Pauli Virtanen
2025-04-28 18:47 ` [BlueZ] " bluez.test.bot
@ 2025-04-28 21:40 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-04-28 21:40 UTC (permalink / raw)
To: Pauli Virtanen; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 28 Apr 2025 20:18:53 +0300 you wrote:
> Fixes: aeeb4fd64adf ("hciemu: set bthost ACL MTU to match btdev")
> Fixes: a112d4345771 ("bthost: implement fragmenting to ACL MTU")
> ---
> emulator/btdev.c | 2 +-
> emulator/bthost.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [BlueZ] hciemu: fix accessing wrong/uninitialized variables
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=2cfc3521cdfa
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-28 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 17:18 [PATCH BlueZ] hciemu: fix accessing wrong/uninitialized variables Pauli Virtanen
2025-04-28 18:47 ` [BlueZ] " bluez.test.bot
2025-04-28 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.