From: David Fries Date: Sat, 9 May 2015 00:51:50 +0000 (-0500) Subject: w1_therm reference count family data X-Git-Tag: omap-for-v4.2/fixes-rc1^2~94^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7134eea05b2fb4a2c0935f8a540539fff01f3eb;p=pandora-kernel.git 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 Reported-By: Thorsten Bschorr Tested-by: Thorsten Bschorr Acked-by: Evgeniy Polyakov Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed