Messages in this thread | | | Date | Mon, 9 Mar 2015 23:47:24 +0100 | Subject | Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm | From | Thorsten Bschorr <> |
| |
> Here's a different strategy, add a w1_therm family_data specific mutex > so w1_therm_remove_slave won't return while another thread is in > w1_slave_show. Thoughts? > > I included three patches, the first is the proposed fix, the second > makes it more reproducible (and since my testing doesn't have external > power I had to ignore that check), the third is just some debugging > messages. For testing I'm starting a read from w1_slave then manually > remove the sensor, which seems to do the trick.
I'll test your patch, but keeping the original sleep-time tm.
| |