linux-stable/drivers/hid/i2c-hid
Johan Hovold d7d7a0e3b6 HID: i2c-hid-of: fix NULL-deref on failed power up
commit 00aab7dcb2 upstream.

A while back the I2C HID implementation was split in an ACPI and OF
part, but the new OF driver never initialises the client pointer which
is dereferenced on power-up failures.

Fixes: b33752c300 ("HID: i2c-hid: Reorganize so ACPI and OF are separate modules")
Cc: stable@vger.kernel.org      # 5.12
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 09:12:33 +01:00
..
Kconfig HID: fix I2C_HID not selected when I2C_HID_OF_ELAN is 2022-11-15 16:27:22 +01:00
Makefile
i2c-hid-acpi.c HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[] 2024-01-01 12:38:53 +00:00
i2c-hid-core.c HID: retain initial quirks set up when creating HID devices 2023-03-10 09:33:21 +01:00
i2c-hid-dmi-quirks.c HID: retain initial quirks set up when creating HID devices 2023-03-10 09:33:21 +01:00
i2c-hid-of-elan.c
i2c-hid-of-goodix.c
i2c-hid-of.c HID: i2c-hid-of: fix NULL-deref on failed power up 2024-02-23 09:12:33 +01:00
i2c-hid.h HID: multitouch: Add quirks for flipped axes 2023-03-10 09:33:20 +01:00