linux/drivers/w1
David Fries f7134eea05 w1_therm reference count family data
A temperature conversion can take 750 ms and when possible the
w1_therm slave driver drops the bus_mutex to allow other bus
operations, but that includes operations such as a periodic slave
search, which can remove this slave when it is no longer detected.
If that happens the sl->family_data will be freed and set to NULL
causing w1_slave_show to crash when it wakes up.

Signed-off-by: David Fries <David@Fries.net>
Reported-By: Thorsten Bschorr <thorsten@bschorr.de>
Tested-by: Thorsten Bschorr <thorsten@bschorr.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-24 12:08:59 -07:00
..
masters w1: constify of_device_id array 2015-03-25 12:25:29 +01:00
slaves w1_therm reference count family data 2015-05-24 12:08:59 -07:00
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile
w1_family.c w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_family.h w1: support auto-load of w1_bq27000 module. 2014-11-26 19:09:02 -08:00
w1_int.c w1: use pr_* instead of printk 2014-06-19 17:46:51 -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 w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_netlink.c w1: avoid potential u16 overflow 2014-11-26 19:09:01 -08:00
w1_netlink.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00
w1.c w1: introduce an ability to specify microseconds bus scanning intervals 2015-05-24 12:08:59 -07:00
w1.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00