Messages in this thread | | | Date | Wed, 28 Mar 2018 01:19:40 +0200 | From | Thierry Reding <> | 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@gmail.com> > --- > drivers/pwm/sysfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Thierry [unhandled content-type:application/pgp-signature] | |