android_kernel_motorola_sm6375/drivers/hid
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann 1ec19d7588
BACKPORT: compat_ioctl: move more drivers to compat_ptr_ioctl
The .ioctl and .compat_ioctl file operations have the same prototype so
they can both point to the same function, which works great almost all
the time when all the commands are compatible.

One exception is the s390 architecture, where a compat pointer is only
31 bit wide, and converting it into a 64-bit pointer requires calling
compat_ptr(). Most drivers here will never run in s390, but since we now
have a generic helper for it, it's easy enough to use it consistently.

I double-checked all these drivers to ensure that all ioctl arguments
are used as pointers or are ignored, but are not interpreted as integer
values.

Acked-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: David Sterba <dsterba@suse.com>
Acked-by: Darren Hart (VMware) <dvhart@infradead.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Change-Id: I7c19d15ea2d2e48a30e726ca0a5b8ee915e6bbe7
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2026-05-08 21:46:20 +02:00
..
i2c-hid HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up 2024-05-02 16:18:37 +02:00
intel-ish-hid HID: intel-ish-hid: fix the length of MNG_SYNC_FW_CLOCK in doorbell 2025-04-10 14:29:36 +02:00
usbhid usb: Undo qcom damage 2026-04-30 21:08:27 +03:00
hid-a4tech.c
hid-accutouch.c
hid-aksys.c
hid-alps.c HID: alps: Declare U1_UNICORN_LEGACY support 2022-08-25 11:17:57 +02:00
hid-apple.c HID: apple: Add 2021 magic keyboard FN key mapping 2024-02-23 08:25:05 +01:00
hid-appleir.c HID: appleir: Fix potential NULL dereference at raw event handle 2025-03-13 12:43:27 +01:00
hid-asus.c HID: asus: fix UAF via HID_CLAIMED_INPUT validation 2025-09-04 14:05:55 +02:00
hid-aureal.c
hid-axff.c
hid-belkin.c
hid-betopff.c HID: betop: check shape of output reports 2023-02-06 07:52:39 +01:00
hid-bigbenff.c UPSTREAM: hid: bigben_probe(): validate report count 2023-03-31 12:41:36 +00:00
hid-cherry.c
hid-chicony.c
hid-cmedia.c
hid-core.c This is the 5.4.297 stable release 2025-09-02 10:52:40 +00:00
hid-corsair.c
hid-cougar.c HID: cougar: fix slab-out-of-bounds Read in cougar_report_fixup 2024-09-12 11:03:54 +02:00
hid-cp2112.c hid: cp2112: Fix duplicate workqueue initialization 2023-11-20 10:30:12 +01:00
hid-creative-sb0540.c
hid-cypress.c
hid-debug.c Revert "HID: fix HID device resource race between HID core and debugging support" 2023-12-11 12:08:38 +00:00
hid-dr.c
hid-elan.c
hid-elecom.c
hid-elo.c
hid-emsff.c
hid-ezkey.c
hid-gaff.c
hid-gembird.c
hid-generic.c
hid-gfrm.c
hid-google-hammer.c HID: google: fix unused variable warning under !CONFIG_ACPI 2025-03-13 12:43:28 +01:00
hid-gt683r.c
hid-gyration.c
hid-holtek-kbd.c HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event 2023-10-25 11:53:23 +02:00
hid-holtek-mouse.c
hid-holtekff.c
hid-hyperv.c usb: Undo qcom damage 2026-04-30 21:08:27 +03:00
hid-icade.c
hid-ids.h Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
hid-input.c HID: Add Mapping for System Microphone Mute 2023-03-11 16:43:56 +01:00
hid-ite.c HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch V 10 2023-01-18 11:40:48 +01:00
hid-jabra.c
hid-kensington.c
hid-keytouch.c
hid-kye.c
hid-lcpower.c
hid-led.c
hid-lenovo.c
hid-lg.c
hid-lg.h
hid-lg2ff.c
hid-lg3ff.c
hid-lg4ff.c HID: hid-lg4ff: Add check for empty lbuf 2022-12-14 11:30:43 +01:00
hid-lg4ff.h
hid-lgff.c
hid-logitech-dj.c HID: logitech-dj: Fix memory leak in logi_dj_recv_switch_to_dj_mode() 2024-07-05 09:08:16 +02:00
hid-logitech-hidpp.c HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect 2023-10-25 11:53:17 +02:00
hid-macally.c
hid-magicmouse.c HID: magicmouse: Do not set BTN_MOUSE on double report 2022-10-29 10:20:35 +02:00
hid-maltron.c
hid-mf.c
hid-microsoft.c This is the 5.4.283 stable release 2024-09-06 11:18:13 +00:00
hid-monterey.c
hid-multitouch.c HID: multitouch: Add NULL check in mt_input_configured 2025-03-13 12:43:12 +01:00
hid-nintendo.c
hid-nti.c
hid-ntrig.c HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version() 2025-09-04 14:05:56 +02:00
hid-ortek.c
hid-penmount.c
hid-petalynx.c
hid-picolcd.h
hid-picolcd_backlight.c
hid-picolcd_cir.c
hid-picolcd_core.c
hid-picolcd_debugfs.c
hid-picolcd_fb.c
hid-picolcd_lcd.c
hid-picolcd_leds.c
hid-pl.c
hid-plantronics.c HID: hid-plantronics: Add mic mute mapping and generalize quirks 2025-04-10 14:29:38 +02:00
hid-playstation.c UPSTREAM: HID: playstation: support updated DualSense rumble mode. 2022-12-21 16:28:02 +00:00
hid-primax.c
hid-prodikeys.c
hid-quirks.c Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
hid-qvr.c
hid-qvr.h
hid-redragon.c
hid-retrode.c
hid-rmi.c
hid-roccat-arvo.c
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h
hid-roccat-isku.c
hid-roccat-isku.h
hid-roccat-kone.c
hid-roccat-kone.h
hid-roccat-koneplus.c
hid-roccat-koneplus.h
hid-roccat-konepure.c
hid-roccat-kovaplus.c
hid-roccat-kovaplus.h
hid-roccat-lua.c
hid-roccat-lua.h
hid-roccat-pyra.c
hid-roccat-pyra.h
hid-roccat-ryos.c
hid-roccat-savu.c
hid-roccat-savu.h
hid-roccat.c UPSTREAM: HID: roccat: Fix use-after-free in roccat_read() 2022-12-05 10:43:45 +00:00
hid-saitek.c HID: saitek: add madcatz variant of MMO7 mouse device ID 2022-11-10 17:57:53 +01:00
hid-samsung.c
hid-sensor-custom.c HID: hid-sensor-custom: set fixed size for custom attributes 2023-01-18 11:41:04 +01:00
hid-sensor-hub.c HID: hid-sensor-hub: don't use stale platform-data on remove 2025-03-13 12:43:08 +01:00
hid-sjoy.c
hid-sony.c
hid-speedlink.c
hid-steam.c BACKPORT: HID: steam: Prevent NULL pointer dereference in steam_{recv,send}_report 2022-10-11 11:26:44 +01:00
hid-steelseries.c
hid-sunplus.c
hid-tivo.c
hid-tmff.c
hid-topseed.c
hid-trace.c
hid-trace.h
hid-twinhan.c
hid-u2fzero.c
hid-uclogic-core.c HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk 2023-01-18 11:40:48 +01:00
hid-uclogic-params.c
hid-uclogic-params.h
hid-uclogic-rdesc.c
hid-uclogic-rdesc.h
hid-udraw-ps3.c
hid-viewsonic.c
hid-waltop.c
hid-wiimote-core.c
hid-wiimote-debug.c
hid-wiimote-modules.c
hid-wiimote.h
hid-xinmo.c
hid-zpff.c
hid-zydacron.c
hidraw.c BACKPORT: compat_ioctl: move more drivers to compat_ptr_ioctl 2026-05-08 21:46:20 +02:00
Kconfig
Makefile
uhid.c Revert "HID: uhid: Over-ride the default maximum data buffer value with our own" 2023-03-23 07:07:46 +00:00
wacom.h HID: wacom: remove the battery when the EKR is off 2023-09-23 10:59:37 +02:00
wacom_sys.c HID: wacom: fix kobject reference count leak 2025-07-17 18:24:54 +02:00
wacom_wac.c HID: wacom: Add a new Art Pen 2 2025-09-04 14:05:55 +02:00
wacom_wac.h HID: wacom: remove the battery when the EKR is off 2023-09-23 10:59:37 +02:00