Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with…
…_timestamp() Add __aligned(8) to ensure the buffer passed to iio_push_to_buffers_with_timestamp() is suitable for the naturally aligned timestamp that will be inserted. Here an explicit structure is not used, because the holes would necessitate the addition of an explict memset(), to avoid a kernel data leak, making for a less minimal fix. Fixes: 1c28799 ("iio: light: isl29501: Add support for the ISL29501 ToF sensor.") Signed-off-by: Jonathan Cameron <[email protected]> Cc: Mathieu Othacehe <[email protected]> Reviewed-by: Nuno Sá <[email protected]> Link: https://lore.kernel.org/r/[email protected]
- Loading branch information