diff options
| author | XingWang Xiang <v3rdant.xiang@gmail.com> | 2026-09-02 15:01:18 +0900 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2026-09-05 09:39:00 +0100 |
| commit | 2b4707a149a55e8fa75c9ef32b359d60f470a566 (patch) | |
| tree | d33c222fc9e3a34231d7c6383312132becad9f26 /scripts/basic/split-include.c | |
| parent | 80dd7e754b3aa9637a0758ad93fa209f9650ec48 (diff) | |
| download | linux-2b4707a149a55e8fa75c9ef32b359d60f470a566.tar.gz linux-2b4707a149a55e8fa75c9ef32b359d60f470a566.zip | |
net: mctp: i3c: serialize probe with bus removal
mctp_i3c_probe() drops busdevs_lock after finding the matching bus. A
concurrent I3C_NOTIFY_BUS_REMOVE can then unregister and free the bus
netdev before probe passes its private data to mctp_i3c_add_device().
The latter consequently adds a list node through a freed mbus pointer.
Keep busdevs_lock held until the device has been added. This also
satisfies the __must_hold annotation on mctp_i3c_add_device().
Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")
Signed-off-by: XingWang Xiang <v3rdant.xiang@gmail.com>
Acked-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
