Re: [PATCH] xen: xenbus: use put_device() instead of kfree()

From: Juergen Gross
Date: Tue Mar 06 2018 - 06:01:17 EST


On 06/03/18 11:10, Arvind Yadav wrote:
> Never directly free @dev after calling device_register(), even
> if it returned an error! Always use put_device() to give up the
> reference initialized.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen