Re: [PATCH net v4] mctp i2c: fix double free of midev on netdev register failure
From: Kenny Hsieh
Date: Tue Nov 24 2026 - 00:21:13 EST
The three mctp-i2c ones are right. v5 will:
- take the unlock marker off and splice tx_queue out under one hold
of the queue lock, so release_flow() can't requeue it in between
- stop the tx thread at the start of ndo_uninit, so on a failed
register it can't select midev again after the detach
- drop the unlock_reset() in mctp_i2c_midev_free(), since the tx
thread already drops the bus lock when it stops
The mctp-i3c issue and the mctp_dev leak in mctp_register_netdevice()
are outside mctp-i2c, so I'll leave them out of this series.
pw-bot: cr