Re: [PATCH v2] workqueue: use put_device() instead of kfree()

From: Tejun Heo
Date: Tue Mar 13 2018 - 16:26:36 EST


On Tue, Mar 06, 2018 at 03:35:43PM +0530, 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 in this function instead.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>

Applied to wq/for-4.16-fixes.

Thanks.

--
tejun