summaryrefslogtreecommitdiff
path: root/drivers/tc
diff options
context:
space:
mode:
authorLevente Kurusa <levex@linux.com>2014-04-23 08:28:00 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-04-23 14:16:06 +1000
commit87847d60d290fba998dda8dbd537ee008a787424 (patch)
treed524ce84206391710dda2a386cdcaa91263004e3 /drivers/tc
parent2f09ee2a6cb1018f4b3a66f68c41a7f803eb3876 (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/tc')
0 files changed, 0 insertions, 0 deletions