In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ad7124: fix division by zero in ad7124setchannel_odr()
In the ad7124writeraw() function, parameter val can potentially be zero. This may lead to a division by zero when DIVROUNDCLOSEST() is called within ad7124setchannelodr(). The ad7124writeraw() function is invoked through the sequence: iiowritechannelraw() -> iiowritechannelattribute() -> iiochannel_write(), with no checks in place to ensure val is non-zero.