mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-12 04:51:59 +00:00
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 | ||