summaryrefslogtreecommitdiff
path: root/drivers/iio/potentiometer
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-17 18:29:59 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-22 17:30:55 +0100
commita5bf6fdd19c327bcfd9073a8740fa19ca4525fd4 (patch)
treee1164347e62269436c1b1b8ce1d5689db5da0c92 /drivers/iio/potentiometer
parent10134ec3f8cefa6a40fe84987f1795e9e0da9715 (diff)
downloadlwn-a5bf6fdd19c327bcfd9073a8740fa19ca4525fd4.tar.gz
lwn-a5bf6fdd19c327bcfd9073a8740fa19ca4525fd4.zip
iio:chemical:sps30: Fix timestamp alignment
One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver which uses an array of smaller elements on the stack. Fixes: 232e0f6ddeae ("iio: chemical: add support for Sensirion SPS30 sensor") Reported-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: <Stable@vger.kernel.org> Acked-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Diffstat (limited to 'drivers/iio/potentiometer')
0 files changed, 0 insertions, 0 deletions