diff mbox series

[BlueZ,v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply

Message ID 20240624201324.3891633-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1] hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply | expand

Commit Message

Luiz Augusto von Dentz June 24, 2024, 8:13 p.m. UTC
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(-)

Comments

bluez.test.bot@gmail.com June 24, 2024, 10:01 p.m. UTC | #1
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
diff mbox series

Patch

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));