Re: [PATCH] xen: xenbus: use put_device() instead of kfree()
From: Juergen Gross
Date: Thu Mar 08 2018 - 09:31:47 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>
Committed to xen/tip.git for-linus-4.16a
Juergen