diff options
author | Hamish Martin <hamish.martin@alliedtelesis.co.nz> | 2023-10-25 05:55:10 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-11-21 09:29:47 +0100 |
commit | f2d4a5834638bbc967371b9168c0b481519f7c5e (patch) | |
tree | fffcb291a436984a9a6e851c648eff4d714211e3 /drivers/hid/hid-letsketch.c | |
parent | Merge tag 'for-linus-2023110101' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
download | linux-f2d4a5834638bbc967371b9168c0b481519f7c5e.tar.xz linux-f2d4a5834638bbc967371b9168c0b481519f7c5e.zip |
HID: mcp2221: Set driver data before I2C adapter add
The process of adding an I2C adapter can invoke I2C accesses on that new
adapter (see i2c_detect()).
Ensure we have set the adapter's driver data to avoid null pointer
dereferences in the xfer functions during the adapter add.
This has been noted in the past and the same fix proposed but not
completed. See:
https://lore.kernel.org/lkml/ef597e73-ed71-168e-52af-0d19b03734ac@vigem.de/
Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-letsketch.c')
0 files changed, 0 insertions, 0 deletions