Re: [PATCH] sparc: vio: use put_device() instead of kfree()

David Miller
2018-04-30T20:10:05Z

From: Arvind Yadav <arvind.yadav.cs@gmail.com>
Date: Wed, 25 Apr 2018 20:26:14 +0530

> 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@gmail.com>

Applied and queued up for -stable, thanks.