diff options
author | Levente Kurusa <levex@linux.com> | 2014-07-31 09:38:12 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-08-08 16:21:26 +1000 |
commit | d15df7aa81dc23a5ac8808f23f9a2ea34cc5eeaa (patch) | |
tree | c5e5afb2f0b5d8c9c5b40affe1293f397c11e56f /arch/ia64/include/asm/page.h | |
parent | b3dc667c9a5cba000995e6ccd0298efeafc0e208 (diff) |
drivers/w1/w1_int.c: call put_device if device_register fails
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.
Signed-off-by: Levente Kurusa <levex@linux.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/ia64/include/asm/page.h')
0 files changed, 0 insertions, 0 deletions