linux/drivers/hid/intel-ish-hid
Zhang Lixu 92826905ae HID: intel-ish-hid: ipc: Fix dev_err usage with uninitialized dev->devc
The variable dev->devc in ish_dev_init was utilized by dev_err before it
was properly assigned. To rectify this, the assignment of dev->devc has
been moved to immediately follow memory allocation.

Without this change "(NULL device *)" is printed for device information.

Fixes: 8ae2f2b0a2 ("HID: intel-ish-hid: ipc: Fix potential use-after-free in work function")
Fixes: ae02e5d40d ("HID: intel-ish-hid: ipc layer")
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
2024-03-21 13:43:33 +01:00
..
ipc HID: intel-ish-hid: ipc: Fix dev_err usage with uninitialized dev->devc 2024-03-21 13:43:33 +01:00
ishtp HID: Intel-ish-hid: Ishtp: Fix sensor reads after ACPI S3 suspend 2024-02-13 11:31:08 +01:00
ishtp-fw-loader.c HID: intel-ish-hid: ishtp-fw-loader: use helper functions for connection 2023-12-06 11:33:45 +01:00
ishtp-hid-client.c HID: intel-ish-hid: ishtp-hid-client: use helper functions for connection 2023-12-06 11:33:45 +01:00
ishtp-hid.c HID: intel-ish-hid: Constify lowlevel HID driver 2023-02-06 15:08:44 +01:00
ishtp-hid.h HID: ishtp-hid-clientHID: ishtp-hid-client: Fix comment typo 2022-08-25 11:35:44 +02:00
Kconfig HID: stop drivers from selecting CONFIG_HID 2023-01-18 16:14:04 +01:00
Makefile treewide: prefix header search paths with $(srctree)/ 2019-05-18 11:49:57 +09:00