mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
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:
|
||
---|---|---|
.. | ||
am2315.c | ||
dht11.c | ||
hdc100x.c | ||
hdc2010.c | ||
hid-sensor-humidity.c | ||
hts221_buffer.c | ||
hts221_core.c | ||
hts221_i2c.c | ||
hts221_spi.c | ||
hts221.h | ||
htu21.c | ||
Kconfig | ||
Makefile | ||
si7005.c | ||
si7020.c |