On Wed, Nov 29, 2017 at 08:31:48AM -0800, James Bottomley wrote: > This analysis fails here: get_device() on something with refcount 0 > returns NULL. That triggers the if clause to ignore this device. No, it doesn't. Take a look at the get_device and kobject_get implementations,