diff options
| author | Dan Carpenter <error27@gmail.com> | 2026-05-25 10:15:46 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-26 19:22:57 +0100 |
| commit | eaaa7eef181892ef7ba56c6295b81f0ae4492c13 (patch) | |
| tree | 2b43200dff5068c577febe4e7d1dc43813cb55f1 /scripts/dummy-tools/python3 | |
| parent | 929fec2964f71d4b1ac664ee963d8226c5cf01c6 (diff) | |
iio: dac: ad3552r-hs: fix uninitialized data ni ad3552r_hs_write_data_source()
If the *ppos value is non-zero then the simple_write_to_buffer() function
won't initialized the start of the buf[] buffer. Non-zero values for
*ppos won't work here generally, so just test for them and return -ENOSPC
at the start of the function.
Fixes: b1c5d68ea66e ("iio: dac: ad3552r-hs: add support for internal ramp")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Angelo Dureghello <adureghello@baylibre.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
