summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-05-06 21:49:57 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-05-21 16:22:02 +0300
commit018f50909e66941916b5422ed7aee7475285b0c0 (patch)
tree160682e0a94c71156d747c97e74808b83d4ddb0c /tools/perf/scripts/python
parented7a1e88ad46fa73eeaec14294ddae6a5a518245 (diff)
downloadlinux-018f50909e66941916b5422ed7aee7475285b0c0.tar.xz
iio: bmp280: zero-init buffer
Zero-initialize the buffer used with iio_push_to_buffers_with_ts(). The struct used for the buffer has holes in it, so we need to make sure that the holes are zeroed out rather than containing uninitialized data from the stack. Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/linux-iio/aBoBR5D1UMjsSUfZ@stanley.mountain/ Fixes: 872c8014e05e ("iio: pressure: bmp280: drop sensor_data array") Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20250506-iio-pressure-bmp280-zero-init-buffer-v1-1-0935c31558ac@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions