]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: intel-thc-hid: intel-quicki2c: fix potential memory corruption
authorEven Xu <even.xu@intel.com>
Mon, 13 Jan 2025 08:50:47 +0000 (16:50 +0800)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 13 Jan 2025 09:48:20 +0000 (10:48 +0100)
commitd08a1049659aa91784306b7244116e71f569e5a0
treee144f6399047c938cbfb54830f16aa2033533e7f
parent0b0d62fa73f22884e1ddd4ed6e288f959ad116ae
HID: intel-thc-hid: intel-quicki2c: fix potential memory corruption

Use U32 to get value from ACPI and explicitly cast to U16.

Fixes: 5282e45ccbfa ("HID: intel-thc-hid: intel-quicki2c: Add THC QuickI2C ACPI interfaces")
Signed-off-by: Even Xu <even.xu@intel.com>
Link: https://patch.msgid.link/20250113085047.2100403-1-even.xu@intel.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c