Re: [PATCH 4/4] w1: call put_device if device_register fails

From: Greg KH
Date: Wed Dec 18 2013 - 18:47:46 EST


On Sat, Dec 14, 2013 at 07:17:09PM +0400, Evgeniy Polyakov wrote:
> Hi
>
> 13.12.2013, 23:23, "Levente Kurusa" <levex@xxxxxxxxx>:
> > 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@xxxxxxxxx>
>
> Acked-by: Evgeniy Polyakov <zbr@xxxxxxxxxxx>

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

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/