aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorZhang Lixu <lixu.zhang@intel.com>2024-03-06 00:44:04 +0000
committerJiri Kosina <jkosina@suse.com>2024-03-21 13:43:33 +0100
commit92826905ae340b7f2b25759a06c8c60bfc476b9f (patch)
treefe540c8c4c9f5e71222cc7bf1d5a8d90f117e163 /scripts/gdb/linux/utils.py
parentHID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up (diff)
downloadlinux-rng-92826905ae340b7f2b25759a06c8c60bfc476b9f.tar.xz
linux-rng-92826905ae340b7f2b25759a06c8c60bfc476b9f.zip
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: 8ae2f2b0a284 ("HID: intel-ish-hid: ipc: Fix potential use-after-free in work function") Fixes: ae02e5d40d5f ("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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions