diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-04-13 11:34:36 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-04-18 16:05:06 +0100 |
commit | f79aeb6c631b57395f37acbfbe59727e355a714c (patch) | |
tree | 2914bdd896e8f1c427e3a6577e2df29a146e4ed4 /lib/net_utils.c | |
parent | 6ffa698674053e82e811520642db2650d00d2c01 (diff) |
iio: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer.
The trick of using __aligned(IIO_DMA_MINALIGN) ensures that there is
no overlap between buffers used for DMA and those used for driver
state storage that are before the marking. It doesn't ensure
anything above state variables found after the marking. Hence
move this particular bit of state earlier in the structure.
Fixes: 10897f34309b ("iio: temp: maxim_thermocouple: Fix alignment for DMA safety")
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-14-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions