linux-yocto/drivers/i2c
Michael J. Ruhl 6358cb9c2a 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 16:03:19 +02:00
..
algos
busses i2c/designware: Fix an initialization issue 2025-07-10 16:03:19 +02:00
muxes i2c: mux: demux-pinctrl: check initial mux selection, too 2025-01-23 17:21:12 +01:00
i2c-atr.c i2c: atr: Fix wrong include 2025-04-25 10:45:46 +02:00
i2c-boardinfo.c
i2c-core-acpi.c i2c: Force ELAN06FA touchpad I2C bus freq to 100KHz 2025-02-17 09:40:08 +01:00
i2c-core-base.c i2c: core: Lock address during client device instantiation 2024-10-10 11:58:01 +02:00
i2c-core-of.c
i2c-core-slave.c
i2c-core-smbus.c
i2c-core.h
i2c-dev.c
i2c-mux.c
i2c-slave-eeprom.c
i2c-slave-testunit.c i2c: testunit: avoid re-issued work after read message 2024-07-18 13:21:26 +02:00
i2c-smbus.c i2c: smbus: Send alert notifications to all devices if source not found 2024-08-14 13:58:51 +02:00
i2c-stub.c
Kconfig
Makefile