Skip to content
Commit e2514764 authored by Tom Deconinck's avatar Tom Deconinck Committed by Benjamin Cabé
Browse files

drivers: sensor: ntc-thermistor-generic: add missing mutex



The ntc-thermistor-generic is not thread safe when calling
sensor_channel_get() due to the mutex not being used in
ntc_thermistor_channel_get() when the sampled data is accessed.
Add the thermistor_data mutex around the data access to fix.

Signed-off-by: default avatarTom Deconinck <t.deconinck@gmail.com>
parent 47d1e380
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment