summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-05-25 10:16:11 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-26 19:22:57 +0100
commita6e8b14a4897d0b6df9744f33d0a30e6b92368eb (patch)
treeb72959a4923e49e5deb7ff34cddfa3b3bbbd4163 /scripts/dummy-tools/python3
parenteaaa7eef181892ef7ba56c6295b81f0ae4492c13 (diff)
iio: backend: fix uninitialized data in debugfs
If the *ppos value is non-zero then simple_write_to_buffer() will not initialize the start of the buf[] buffer. Non-zero ppos values aren't going to work at all. Check for that at the start of the function and return -ENOSPC. Fixes: cdf01e0809a4 ("iio: backend: add debugFs interface") Signed-off-by: Dan Carpenter <error27@gmail.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