[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180327231939.GC4097@mithrandir>
Date: Wed, 28 Mar 2018 01:19:40 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Arvind Yadav <arvind.yadav.cs@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-pwm@...r.kernel.org
Subject: Re: [PATCH] pwm: sysfs: use put_device() instead of kfree()
On Thu, Mar 08, 2018 at 03:27:37PM +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.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
> ---
> drivers/pwm/sysfs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists