Re: [PATCH v8 3/4] driver core: shut down devices asynchronously

From: Lukas Wunner
Date: Sat Aug 24 2024 - 06:29:42 EST


On Thu, Aug 22, 2024 at 03:28:04PM -0500, Stuart Hayes wrote:
> --- a/drivers/base/core.c
> +++ b/drivers/base/core.c
> @@ -3531,6 +3532,7 @@ static int device_private_init(struct device *dev)
> klist_init(&dev->p->klist_children, klist_children_get,
> klist_children_put);
> INIT_LIST_HEAD(&dev->p->deferred_probe);
> + dev->p->shutdown_after = 0;
> return 0;
> }

Nit: Unnecessary assignment since dev->p is allocated with kzalloc()
immediately above this hunk.

Thanks,

Lukas