Commit: 50487180813dfa7e7f106076e0cb9c5c0ad58bb3
Parent: c2d072641aa9015fdfab196d095566fea364d4dc
Author: Andrey Smirnov <andrew.smirnov@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-10-17 18:50:05
Tree: 1caf99113773a1a45a6c69de6111afdb0c5c6153

hog-lib: Fix 32-bit integer truncation Id paramter stored in getrep_id and setrep_id corresponds to a 32-bit tag value passed to us from the kernel side of UHID. Specifying this parameter as uint16_t breaks the synchronization after 65536 request and renders the attached BLE device inoperable. Fixes: cdddd7e69e06 ("android/hog: implement get_report functionality") Fixes: 83ed02d06fca ("android/hog: Implement set_report functionality") Cc: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Diffstat

M profiles/input/hog-lib.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch