Re: [PATCH net v2] net/mctp: publish the mctp_dev only after it is initialised
From: Jakub Kicinski
Date: Fri Sep 25 2026 - 19:36:42 EST
On Tue, 22 Sep 2026 21:19:19 +0800 (CST) Binbin Deng wrote:
> + /*
> + * Associate to net_device. Publish only once the object is fully
> + * initialised: __mctp_dev_get() runs under rcu_read_lock() only and
> + * hands this object to readers as soon as mctp_ptr is assigned, so
> + * they must never observe mdev->dev == NULL.
> + */
Too obvious to include, I'll trim when applying