alistair23-linux/drivers/w1
Maciej S. Szmigiero d2ce4ea1a0 w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
Near the beginning of w1_attach_slave_device() we increment a w1 master
reference count.
Later, when we are going to exit this function without actually attaching
a slave device (due to failure of __w1_attach_slave_device()) we need to
decrement this reference count back.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Cc: stable@vger.kernel.org
Fixes: 9fcbbac5de ("w1: process w1 netlink commands in w1_process thread")
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-25 11:46:42 +01:00
..
masters w1: ds2490: USB transfer buffers need to be DMAable 2017-01-25 11:46:42 +01:00
slaves w1: add DS2405 addressable switch driver 2017-01-25 11:46:42 +01:00
Kconfig
Makefile
w1.c w1: don't leak refcount on slave attach failure in w1_attach_slave_device() 2017-01-25 11:46:42 +01:00
w1.h w1: add ability to set (SRAM) and store (EEPROM) configuration for temp sensors like DS18B20 2016-05-01 14:37:49 -07:00
w1_family.c
w1_family.h w1: add DS2405 addressable switch driver 2017-01-25 11:46:42 +01:00
w1_int.c
w1_int.h
w1_io.c w1: add DS2405 addressable switch driver 2017-01-25 11:46:42 +01:00
w1_log.h
w1_netlink.c
w1_netlink.h