linux-yocto/drivers/i2c
Michael J. Ruhl 5b622e672e i2c/designware: Fix an initialization issue
commit 3d30048958 upstream.

The i2c_dw_xfer_init() function requires msgs and msg_write_idx from the
dev context to be initialized.

amd_i2c_dw_xfer_quirk() inits msgs and msgs_num, but not msg_write_idx.

This could allow an out of bounds access (of msgs).

Initialize msg_write_idx before calling i2c_dw_xfer_init().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Fixes: 17631e8ca2 ("i2c: designware: Add driver support for AMD NAVI GPU")
Cc: <stable@vger.kernel.org> # v5.13+
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250627143511.489570-1-michael.j.ruhl@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-10 15:59:53 +02:00
..
algos
busses i2c/designware: Fix an initialization issue 2025-07-10 15:59:53 +02:00
muxes i2c: mux: demux-pinctrl: check initial mux selection, too 2025-01-23 17:17:11 +01:00
i2c-boardinfo.c
i2c-core-acpi.c i2c: Force ELAN06FA touchpad I2C bus freq to 100KHz 2025-02-21 13:49:32 +01:00
i2c-core-base.c i2c: core: Lock address during client device instantiation 2024-10-17 15:22:04 +02:00
i2c-core-of.c i2c: add fwnode APIs 2024-06-21 14:35:40 +02:00
i2c-core-slave.c
i2c-core-smbus.c
i2c-core.h i2c: core: Fix atomic xfer check for non-preempt config 2024-01-10 17:10:35 +01:00
i2c-dev.c i2c: dev: copy userspace array safely 2023-11-28 17:07:02 +00:00
i2c-mux.c i2c: mux: Avoid potential false error message in i2c_mux_add_adapter 2023-10-25 12:03:09 +02:00
i2c-slave-eeprom.c
i2c-slave-testunit.c i2c: testunit: avoid re-issued work after read message 2024-07-18 13:18:43 +02:00
i2c-smbus.c i2c: smbus: Send alert notifications to all devices if source not found 2024-08-14 13:52:53 +02:00
i2c-stub.c
Kconfig
Makefile