aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/w1
diff options
context:
space:
mode:
authorLevente Kurusa <levex@linux.com>2015-09-14 10:56:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-05 04:47:09 +0100
commit5052436dcb7eac532cf2ffd6650be01d3f15e0b5 (patch)
tree87ac7ae4040bf709aa7cd1f1d67b078293304e21 /Documentation/devicetree/bindings/w1
parentpcmcia: use kstrdup() in pcmcia_device_query() (diff)
downloadlinux-dev-5052436dcb7eac532cf2ffd6650be01d3f15e0b5.tar.xz
linux-dev-5052436dcb7eac532cf2ffd6650be01d3f15e0b5.zip
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/w1')
0 files changed, 0 insertions, 0 deletions