Re: [PATCH RFC 1/2] driver core: Add ability to delete device links of unregistered devices
From: Greg Kroah-Hartman
Date: Wed Jul 07 2021 - 13:38:31 EST
On Wed, Jul 07, 2021 at 08:29:47PM +0300, Adrian Hunter wrote:
> +void device_links_scrap(struct device *dev)
> +{
> + if (WARN_ON(device_is_registered(dev)))
You just rebooted a box if this was hit, never add new WARN_ON() please.
greg k-h