linux/drivers/w1
Maciej S. Szmigiero ea96a14de1 w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
commit d2ce4ea1a0 upstream.

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>
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-06-05 21:16:58 +01:00
..
masters w1: ds2490: USB transfer buffers need to be DMAable 2017-06-05 21:16:58 +01:00
slaves w1_therm reference count family data 2015-07-09 14:36:07 +01:00
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile [PATCH] better CONFIG_W1_SLAVE_DS2433_CRC handling 2006-12-07 08:39:43 -08:00
w1.c w1: don't leak refcount on slave attach failure in w1_attach_slave_device() 2017-06-05 21:16:58 +01:00
w1.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00
w1_family.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
w1_family.h w1: format for DocBook and fixes 2014-02-07 15:40:18 -08:00
w1_int.c w1: do not unlock unheld list_mutex in __w1_remove_master_device() 2014-05-27 14:08:46 -07:00
w1_int.h MAINTAINERS: Evgeniy has moved 2011-08-25 16:25:33 -07:00
w1_io.c w1: format for DocBook and fixes 2014-02-07 15:40:18 -08:00
w1_log.h MAINTAINERS: Evgeniy has moved 2011-08-25 16:25:33 -07:00
w1_netlink.c w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00
w1_netlink.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00