diff options
| author | Rodrigo Alencar <rodrigo.alencar@analog.com> | 2026-05-01 10:14:55 +0100 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-15 12:05:34 +0100 |
| commit | d01220ee5e43c65a206df827b39bf5cf5f7b9dce (patch) | |
| tree | 2e77fb81a08f03795030c8c2e0e1625e8958ecec /scripts/objdiff | |
| parent | ecae2ae606d493cf11457946436335bd0e726663 (diff) | |
iio: dac: ad5686: fix input raw value check
Fix range check for input raw value, which is off by one, i.e., for a
10-bit DAC the max valid value is 1023, but 1 << 10 equals 1024, which
passes the previous check, allowing an out-of-range write. The issue
exists since the ad5686 driver was first introduced.
Fixes: c2f37c8dcadc ("iio: dac: New driver for AD5686R, AD5685R, AD5684R Digital to analog converters")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
