linux/drivers/i3c/master
Billy Tsai b53e9758a3 i3c: master: mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
The `i3c_master_bus_init` function may attach the I2C devices before the
I3C bus initialization. In this flow, the DAT `alloc_entry`` will be used
before the DAT `init`. Additionally, if the `i3c_master_bus_init` fails,
the DAT `cleanup` will execute before the device is detached, which will
execue DAT `free_entry` function. The above scenario can cause the driver
to use DAT_data when it is NULL.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20231023080237.560936-1-billy_tsai@aspeedtech.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-11-04 00:39:52 +01:00
..
mipi-i3c-hci i3c: master: mipi-i3c-hci: Fix a kernel panic for accessing DAT_data. 2023-11-04 00:39:52 +01:00
ast2600-i3c-master.c i3c: Explicitly include correct DT includes 2023-07-27 23:23:41 +02:00
dw-i3c-master.c i3c: dw: Annotate struct dw_i3c_xfer with __counted_by 2023-09-25 23:32:33 +02:00
dw-i3c-master.h i3c: dw: Add a platform facility for IBI PEC workarounds 2023-04-28 08:20:07 +02:00
i3c-master-cdns.c i3c: master: cdns: Annotate struct cdns_i3c_xfer with __counted_by 2023-09-25 23:33:12 +02:00
Kconfig i3c: ast2600: Add AST2600 platform-specific driver 2023-04-28 08:19:01 +02:00
Makefile i3c: ast2600: Add AST2600 platform-specific driver 2023-04-28 08:19:01 +02:00
svc-i3c-master.c i3c: master: svc: fix compatibility string mismatch with binding doc 2023-11-03 20:02:45 +01:00