Web lists-archives.com

Re: [PATCH] vmbus: unregister device_obj->channels_kset




On Mon, 13 Nov 2017 01:53:33 +0000
Dexuan Cui <decui@xxxxxxxxxxxxx> wrote:

> Fixes: c2e5df616e1a ("vmbus: add per-channel sysfs info")
> 
> Without the patch, a device can't be thoroughly destroyed, because
> vmbus_device_register() -> kset_create_and_add() still holds a reference
> to the hv_device's device.kobj.
> 
> Signed-off-by: Dexuan Cui <decui@xxxxxxxxxxxxx>
> Cc: Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>
> Cc: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>
> ---

Good catch

Signed-off-by: Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>