diff options
author | Levente Kurusa <levex@linux.com> | 2014-04-23 08:28:00 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-04-23 14:16:06 +1000 |
commit | 87847d60d290fba998dda8dbd537ee008a787424 (patch) | |
tree | d524ce84206391710dda2a386cdcaa91263004e3 /drivers/atm/idt77105.h | |
parent | 2f09ee2a6cb1018f4b3a66f68c41a7f803eb3876 (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 'drivers/atm/idt77105.h')
0 files changed, 0 insertions, 0 deletions