linux/drivers/i3c/master/mipi-i3c-hci
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
..
Makefile
cmd.h
cmd_v1.c i3c: mipi-i3c-hci: Fix missing xfer->completion in hci_cmd_v1_daa() 2023-09-25 23:35:14 +02:00
cmd_v2.c
core.c i3c: mipi-i3c-hci: Resume controller explicitly 2023-09-25 23:35:14 +02:00
dat.h
dat_v1.c i3c: master: mipi-i3c-hci: Fix a kernel panic for accessing DAT_data. 2023-11-04 00:39:52 +01:00
dct.h
dct_v1.c
dma.c i3c: mipi-i3c-hci: Resume controller after aborted transfer 2023-09-25 23:35:14 +02:00
ext_caps.c
ext_caps.h
hci.h i3c/master/mipi-i3c-hci: Prefer kcalloc over open coded arithmetic 2021-12-10 15:54:46 +01:00
ibi.h
pio.c
xfer_mode_rate.h