summaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/page.h
diff options
context:
space:
mode:
authorLevente Kurusa <levex@linux.com>2014-07-31 09:38:12 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-08-08 16:21:26 +1000
commitd15df7aa81dc23a5ac8808f23f9a2ea34cc5eeaa (patch)
treec5e5afb2f0b5d8c9c5b40affe1293f397c11e56f /arch/ia64/include/asm/page.h
parentb3dc667c9a5cba000995e6ccd0298efeafc0e208 (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