lkml.org 
[lkml]   [2013]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] w1: call put_device if device_register fails
On Sat, Dec 14, 2013 at 07:17:09PM +0400, Evgeniy Polyakov wrote:
> Hi
>
> 13.12.2013, 23:23, "Levente Kurusa" <levex@linux.com>:
> > Currently, memsetting and kfreeing the device is bad behaviour.
> > The device will have a reference count of 1 and hence can cause trouble
> > because it has kfree'd. Proper way to handle a failed device_register
> > is to call put_device right after it fails.
>
> Looks good to me, thank you
> Greg, please pull it into your treee
>
> > Signed-off-by: Levente Kurusa <levex@linux.com>
>
> Acked-by: Evgeniy Polyakov <zbr@ioremap.net>

I don't seem to have this patch anywhere, can someone please resend it
to me?

thanks,

greg k-h


\
 
 \ /
  Last update: 2013-12-19 01:01    [W:0.071 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site