10b9c2c33a
IIO trigger interface function iio_trigger_get() should be called after
iio_trigger_register() (or its devm analogue) strictly, because of
iio_trigger_get() acquires module refcnt based on the trigger->owner
pointer, which is initialized inside iio_trigger_register() to
THIS_MODULE.
If this call order is wrong, the next iio_trigger_put() (from sysfs
callback or "delete module" path) will dereference "default" module
refcnt, which is incorrect behaviour.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
am2315.c | ||
dht11.c | ||
hdc100x.c | ||
hdc2010.c | ||
hid-sensor-humidity.c | ||
hts221.h | ||
hts221_buffer.c | ||
hts221_core.c | ||
hts221_i2c.c | ||
hts221_spi.c | ||
htu21.c | ||
si7005.c | ||
si7020.c |