Messages in this thread | | | From | Evgeniy Polyakov <> | Subject | Re: [PATCH 4/4] w1: call put_device if device_register fails | Date | Sat, 14 Dec 2013 19:17:09 +0400 |
| |
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>
| |