linux/drivers/w1/slaves
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
..
Kconfig w1: select crc16 library for ds2406 2014-06-23 12:38:08 -04:00
Makefile w1: new w1_ds2406 driver 2014-06-19 17:45:14 -07:00
w1_bq27000.c w1: support auto-load of w1_bq27000 module. 2014-11-26 19:09:02 -08:00
w1_ds28e04.c w1: slaves: w1_ds28e04: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2406.c w1: new w1_ds2406 driver 2014-06-19 17:45:14 -07:00
w1_ds2408.c w1: slaves: w1_ds2408: convert to use w1_family_ops.groups 2013-08-22 11:05:42 -07:00
w1_ds2413.c w1: slaves: w1_ds2413.c: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2423.c w1: slaves: w1_ds2423: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2431.c w1: slaves: w1_ds2431: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2433.c w1: slaves: w1_ds2433: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2760.c w1/slaves: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_ds2760.h
w1_ds2780.c w1: slaves: w1_ds2780: convert to use w1_family_ops.groups 2013-08-22 11:05:43 -07:00
w1_ds2780.h
w1_ds2781.c w1: slaves: w1_ds2781: convert to use w1_family_ops.groups 2013-08-22 11:05:44 -07:00
w1_ds2781.h
w1_smem.c w1: add family based automatic module loading 2013-06-03 14:09:14 -07:00
w1_therm.c w1_therm reference count family data 2015-05-24 12:08:59 -07:00