Re: [v3] ssb: use put_device() if device_register fail

From: Kalle Valo
Date: Tue Mar 13 2018 - 12:49:04 EST


Arvind Yadav <arvind.yadav.cs@xxxxxxxxx> 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>

Patch applied to wireless-drivers-next.git, thanks.

a24853aab591 ssb: use put_device() if device_register fail

--
https://patchwork.kernel.org/patch/10266711/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches