summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-12 15:46:07 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 11:24:38 +0300
commit216345f98cae7fcc84f49728c67478ac00321c87 (patch)
tree893d983eb9f3288a285dd113495eed0bcac9573e /include/linux/timerqueue.h
parent82ee91d6b15f06b6094eea2c26afe0032fe8e177 (diff)
downloadlinux-216345f98cae7fcc84f49728c67478ac00321c87.tar.xz
iio: chemical: sps30_i2c: fix buffer size in sps30_i2c_read_meas()
sizeof(num) evaluates to sizeof(size_t) (8 bytes on 64-bit) instead of the intended __be32 element size (4 bytes). Use sizeof(*meas) to correctly match the buffer element type. Fixes: 8f3f13085278 ("iio: sps30: separate core and interface specific code") Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Acked-by: Tomasz Duszynski <tduszyns@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions