lkml.org 
[lkml]   [2017]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] vmbus: unregister device_obj->channels_kset
On Mon, 13 Nov 2017 01:53:33 +0000
Dexuan Cui <decui@microsoft.com> 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@microsoft.com>
> Cc: Stephen Hemminger <sthemmin@microsoft.com>
> Cc: K. Y. Srinivasan <kys@microsoft.com>
> ---

Good catch

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>

\
 
 \ /
  Last update: 2017-11-13 17:17    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog