diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-02-12 14:46:07 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-19 16:08:46 +0100 |
| commit | 90e978ace598567e6e30de79805bddf37cf892ac (patch) | |
| tree | 2e058feedbc085bec401b5786d8df52d4cc18059 /drivers/iio/magnetometer/tlv493d.c | |
| parent | eddba110685f8120f9cdf9bfd93ebe87a8bb527b (diff) | |
iio: chemical: sps30_i2c: fix buffer size in sps30_i2c_read_meas()
commit 216345f98cae7fcc84f49728c67478ac00321c87 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/magnetometer/tlv493d.c')
0 files changed, 0 insertions, 0 deletions
