]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: hid-asus: add const to read-only outgoing usb buffer
authorDenis Benato <benato.denis96@gmail.com>
Fri, 17 Nov 2023 01:15:55 +0000 (14:15 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:32:37 +0000 (15:32 +0100)
commit7327aea5ac3727f9573308a34c22adabc0520436
treedc47004c7968e36468a5af790a86da5a9307852a
parentd55bdeff61b3355c6dead681554c04b1484dd101
HID: hid-asus: add const to read-only outgoing usb buffer

[ Upstream commit 06ae5afce8cc1f7621cc5c7751e449ce20d68af7 ]

In the function asus_kbd_set_report the parameter buf is read-only
as it gets copied in a memory portion suitable for USB transfer,
but the parameter is not marked as const: add the missing const and mark
const immutable buffers passed to that function.

Signed-off-by: Denis Benato <benato.denis96@gmail.com>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-asus.c