diff options
author | 2016-05-13 21:43:33 +0300 | |
---|---|---|
committer | 2016-05-29 20:25:27 +0100 | |
commit | ff05916f94f912b25e8efcf9b02c10d481977bab (patch) | |
tree | 4f418509a534fc6c19c7057cadbbdc57461a6520 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: st_sensors: switch to a threaded interrupt (diff) | |
download | wireguard-linux-ff05916f94f912b25e8efcf9b02c10d481977bab.tar.xz wireguard-linux-ff05916f94f912b25e8efcf9b02c10d481977bab.zip |
iio: st_sensors: Init trigger before irq request
This fixes a possible race where an interrupt arrives before complete
initialization and crashes because iio_trigger_get_drvdata returns NULL.
Cc: Giuseppe Barba <giuseppe.barba@st.com>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions