diff options
| author | 2026-02-13 23:14:43 +0800 | |
|---|---|---|
| committer | 2026-02-23 08:24:38 +0000 | |
| commit | 585b90c0161ab77416fe3acdbdc55b978e33e16c (patch) | |
| tree | 23d39faa85417c8e90c5bfb2f90fc761b0f17633 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | iio: chemical: bme680: Fix measurement wait duration calculation (diff) | |
iio: proximity: hx9023s: fix assignment order for __counted_by
Initialize fw_size before copying firmware data into the flexible
array member to match the __counted_by() annotation. This fixes the
incorrect assignment order that triggers runtime safety checks.
Fixes: e9ed97be4fcc ("iio: proximity: hx9023s: Added firmware file parsing functionality")
Signed-off-by: Yasin Lee <yasin.lee.x@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 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
