* [PATCH BlueZ v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all
@ 2024-08-28 20:29 Luiz Augusto von Dentz
2024-08-28 22:03 ` [BlueZ,v2] " bluez.test.bot
2024-08-29 15:50 ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2024-08-28 20:29 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
uhid->start_id shall not be unregistered in case of
bt_uhid_unregister_all as that is considerer a internal notification
not under controller of the users.
---
src/shared/uhid.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/shared/uhid.c b/src/shared/uhid.c
index 98d6198c7d0a..ed21e1399ba7 100644
--- a/src/shared/uhid.c
+++ b/src/shared/uhid.c
@@ -284,12 +284,22 @@ bool bt_uhid_unregister(struct bt_uhid *uhid, unsigned int id)
return true;
}
+static bool match_not_id(const void *a, const void *b)
+{
+ const struct uhid_notify *notify = a;
+ unsigned int id = PTR_TO_UINT(b);
+
+ return notify->id != id;
+}
+
bool bt_uhid_unregister_all(struct bt_uhid *uhid)
{
if (!uhid)
return false;
- queue_remove_all(uhid->notify_list, NULL, NULL, free);
+ queue_remove_all(uhid->notify_list, match_not_id,
+ UINT_TO_PTR(uhid->start_id), free);
+
return true;
}
--
2.46.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ,v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all
2024-08-28 20:29 [PATCH BlueZ v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all Luiz Augusto von Dentz
@ 2024-08-28 22:03 ` bluez.test.bot
2024-08-29 15:50 ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-08-28 22:03 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 949 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=884452
---Test result---
Test Summary:
CheckPatch PASS 0.46 seconds
GitLint PASS 0.31 seconds
BuildEll PASS 24.52 seconds
BluezMake PASS 1696.14 seconds
MakeCheck PASS 13.96 seconds
MakeDistcheck PASS 178.71 seconds
CheckValgrind PASS 252.44 seconds
CheckSmatch PASS 356.46 seconds
bluezmakeextell PASS 120.07 seconds
IncrementalBuild PASS 1455.33 seconds
ScanBuild PASS 1009.01 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all
2024-08-28 20:29 [PATCH BlueZ v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all Luiz Augusto von Dentz
2024-08-28 22:03 ` [BlueZ,v2] " bluez.test.bot
@ 2024-08-29 15:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-08-29 15:50 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 28 Aug 2024 16:29:49 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> uhid->start_id shall not be unregistered in case of
> bt_uhid_unregister_all as that is considerer a internal notification
> not under controller of the users.
> ---
> src/shared/uhid.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
Here is the summary with links:
- [BlueZ,v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=2daddeada069
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:[~2024-08-29 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 20:29 [PATCH BlueZ v2] shared/uhid: Fix unregistering UHID_START on bt_uhid_unregister_all Luiz Augusto von Dentz
2024-08-28 22:03 ` [BlueZ,v2] " bluez.test.bot
2024-08-29 15:50 ` [PATCH BlueZ v2] " 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.