summaryrefslogtreecommitdiff
path: root/Documentation/driver-api
diff options
context:
space:
mode:
authorBilly Tsai <billy_tsai@aspeedtech.com>2023-10-23 11:02:37 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-11-04 02:39:52 +0300
commitb53e9758a31c683fc8615df930262192ed5f034b (patch)
tree386625d06c7566a64f20a2a4c740a9598a62ac75 /Documentation/driver-api
parent8911eae9c8a947e5c1cc4fcce40473f1f5e475cd (diff)
downloadlinux-b53e9758a31c683fc8615df930262192ed5f034b.tar.xz
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>
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions