public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply
@ 2024-06-24 20:13 Luiz Augusto von Dentz
  2024-06-24 22:01 ` [BlueZ,v1] " bluez.test.bot
  2024-06-25 12:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2024-06-24 20:13 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

The parameters of bt_uhid_get_report_reply are number followed by
status, not status followed by number, so the order needs to be
swapped.

Fixes: https://github.com/bluez/bluez/issues/880
---
 profiles/input/hog-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 67a0e832dc98..1b4aca07486b 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -904,7 +904,7 @@ static void report_reply(struct bt_hog *hog, uint8_t status, uint8_t id,
 
 	hog->getrep_att = 0;
 
-	err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, status, id,
+	err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, id, status,
 					data, len);
 	if (err < 0)
 		error("bt_uhid_get_report_reply: %s", strerror(-err));
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ,v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply
  2024-06-24 20:13 [PATCH BlueZ v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply Luiz Augusto von Dentz
@ 2024-06-24 22:01 ` bluez.test.bot
  2024-06-25 12:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-06-24 22:01 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 948 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=865048

---Test result---

Test Summary:
CheckPatch                    PASS      0.42 seconds
GitLint                       PASS      0.29 seconds
BuildEll                      PASS      26.02 seconds
BluezMake                     PASS      1663.87 seconds
MakeCheck                     PASS      13.46 seconds
MakeDistcheck                 PASS      178.03 seconds
CheckValgrind                 PASS      251.27 seconds
CheckSmatch                   PASS      354.36 seconds
bluezmakeextell               PASS      120.09 seconds
IncrementalBuild              PASS      1417.64 seconds
ScanBuild                     PASS      998.78 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply
  2024-06-24 20:13 [PATCH BlueZ v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply Luiz Augusto von Dentz
  2024-06-24 22:01 ` [BlueZ,v1] " bluez.test.bot
@ 2024-06-25 12:50 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-06-25 12: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 Mon, 24 Jun 2024 16:13:24 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> The parameters of bt_uhid_get_report_reply are number followed by
> status, not status followed by number, so the order needs to be
> swapped.
> 
> Fixes: https://github.com/bluez/bluez/issues/880
> 
> [...]

Here is the summary with links:
  - [BlueZ,v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=5ebaeab4164f

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-06-25 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 20:13 [PATCH BlueZ v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply Luiz Augusto von Dentz
2024-06-24 22:01 ` [BlueZ,v1] " bluez.test.bot
2024-06-25 12:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox