summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-12 15:46:08 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 11:24:38 +0300
commitc3914ce1963c4db25e186112c90fa5d2361e9e0a (patch)
treec42c40756fa13201d1050906575c453eb94cd705 /include/linux/workqueue_api.h
parent216345f98cae7fcc84f49728c67478ac00321c87 (diff)
downloadlinux-c3914ce1963c4db25e186112c90fa5d2361e9e0a.tar.xz
iio: chemical: sps30_serial: fix buffer size in sps30_serial_read_meas()
sizeof(num) evaluates to sizeof(size_t) which is 8 bytes on 64-bit, but the buffer elements are only 4 bytes. The same function already uses sizeof(*meas) on line 312, making the mismatch evident. Use sizeof(*meas) consistently. Fixes: b2e171f5a5c6 ("iio: sps30: add support for serial interface") 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/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions