IIO: Fixes for 7.3, or 7.4 merge window.

Nothing here strikes me as particularly urgent.
 
 The core buffer one has been there a long time and is a race only seen
 during driver removal.
 
 core
 - Ensure buffer teardown on remove occurs under same locks as in other
   paths, preventing races around access to active_scan_mask.
 adi,ad-sigma-delta
 - Fix a use-after-free in driver unbind path by just always allocating
   a buffer that is large enough rather than trying to resize at runtime.
 adi,ad4030
 - Fix validation of oversampling_ratio to check if value is in range before
   using it.
 adi,ad7173
 - Fix swapped masks for filter fields being written.
 adi,ad9000
 - Fix a potential NULL dereference.
 kionix,kxcfjk-1013
 - Reject disable of disabled event with underflows on runtime PM.
 inv,icm42607
 - Don't eat runtime suspend errors.
 - Make sure to put runtime PM back on errors in system resume.
 isil,isl29501
 - Fix a wrong return type for register_write function so it can return
   error codes.
 st,stm32-adc
 - Fix checking for whether a channel actually exists.
 - Avoid a possible division by zero.
 ti,pac1934
 - Fix missing memory allocation check.
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCgAvFiEEbilms4eEBlKRJoGxVIU0mcT0FogFAmq9UDwRHGppYzIzQGtl
 cm5lbC5vcmcACgkQVIU0mcT0FohplQ/7BIRKb/IAjgYKQAlQ7qdTsBqVcjFzyU6J
 TWMpI19aeJUDOklcrJf9dC3B8VHbx2YJBGaAjxnSjcA3MZk7Jl5l5l1gLs5tU5Yi
 N8mLK+pIfZ56zTTHLqI5o14hII9a6IU+/NR8mtUjpLBXQ8921/+cYH5RhihQm8DS
 A9VVAJt3QioherjTVx6YsTFspVR8Aa/vyRNPrK3wit/GFbxvrG9aRu95F8+vgQWi
 uDzFWtKPMgElYRq/AivwUp85zcOGccDVB4sba+tXF46EugpkkohqDLdiDnWb2v6B
 sWnbIG/SQ9FWxGWvHD5NjNNrSrZNEnLutaRtSmzvZv+p4Ahv+Q7rpJnkiWRZr3J7
 M6e3BM9XMUuhKq8ElC7UZk58kABSZKC1qtD4rx0KUht7uzPYOm0csAIGCRsu/59e
 hMqTwcekDSbeUR48NuDCtongfAHHYnyghLJ4uD6NNR6S48YPXUYgx16zc3MdKO2E
 QlcbbJl0W7/h6dO/HTnTbayLIGwn/CipsVN7iVQzEYDzyFcTuVVwdbCqM88doz+1
 C13CKNVfFoT4vcBVymjbPiSlEJAJOqnzIU5u40R+ZgIa6BxzV5/v2bvo7LxbSkMa
 fhRtv7aeMg1iVNwqxF/srCSQzigo8Rp3tdWOs2NiNSJCjlqY7C72o+B8MP+WC5br
 8mEUpCR7IuA=
 =de+c
 -----END PGP SIGNATURE-----

Merge tag 'iio-fixes-late-7.3' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-linus

Jonathan writes:

IIO: Fixes for 7.3, or 7.4 merge window.

Nothing here strikes me as particularly urgent.

The core buffer one has been there a long time and is a race only seen
during driver removal.

core
- Ensure buffer teardown on remove occurs under same locks as in other
  paths, preventing races around access to active_scan_mask.
adi,ad-sigma-delta
- Fix a use-after-free in driver unbind path by just always allocating
  a buffer that is large enough rather than trying to resize at runtime.
adi,ad4030
- Fix validation of oversampling_ratio to check if value is in range before
  using it.
adi,ad7173
- Fix swapped masks for filter fields being written.
adi,ad9000
- Fix a potential NULL dereference.
kionix,kxcfjk-1013
- Reject disable of disabled event with underflows on runtime PM.
inv,icm42607
- Don't eat runtime suspend errors.
- Make sure to put runtime PM back on errors in system resume.
isil,isl29501
- Fix a wrong return type for register_write function so it can return
  error codes.
st,stm32-adc
- Fix checking for whether a channel actually exists.
- Avoid a possible division by zero.
ti,pac1934
- Fix missing memory allocation check.

* tag 'iio-fixes-late-7.3' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
  iio: adc: ad_sigma_delta: fix use-after-free on unbind
  iio: accel: kxcjk-1013: reject duplicate event disable
  iio: buffer: serialize buffer teardown with mode claims
  iio: cdc: ad7150: fix OF matching and publish module aliases
  iio: adc: ade9000: fix NULL pointer dereference in clkout registration
  iio: adc: ad4030: fix invalid oversampling_ratio validation
  iio: adc: ad7173: Fix digital filter configuration
  iio: adc: stm32-adc: fix possible division by zero in processed channel
  iio: adc: stm32-adc: fix check on internal channel availability
  iio: proximity: isl29501: Fix return type of isl29501_register_write
  iio: imu: inv_icm42607: restore runtime PM on system resume errors
  iio: imu: inv_icm42607: propagate runtime suspend errors
  iio: adc: pac1934: check ACPI label duplication
This commit is contained in:
Greg Kroah-Hartman 2026-10-01 14:57:00 +02:00
commit 8e242ada09
11 changed files with 102 additions and 50 deletions