summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStepan Ionichev <sozdayvek@gmail.com>2026-05-17 21:26:13 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-26 21:22:57 +0300
commit3c5eed894efd93d68d7f6a359a81ddef0e928774 (patch)
treebea6050e8ac60431eb141c4207871c3d75ef618c /scripts
parent6325d6e2204327965b849c0a16efb6ac9202e5a8 (diff)
downloadlinux-3c5eed894efd93d68d7f6a359a81ddef0e928774.tar.xz
iio: temperature: tmp006: use devm_iio_trigger_register
tmp006_probe() allocates the DRDY trigger with devm_iio_trigger_alloc() but registers it with plain iio_trigger_register(). The driver has no .remove() callback, so on module unload the trigger stays in the global trigger list while its memory is freed by devm, leaving a dangling entry. Switch to devm_iio_trigger_register() so the registration is undone in the same devm scope as the allocation. Fixes: 91f75ccf9f03 ("iio: temperature: tmp006: add triggered buffer support") Cc: stable@vger.kernel.org Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions