diff options
| author | Tyrone Ting <kfting@nuvoton.com> | 2024-08-30 11:46:34 +0800 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2024-09-10 00:36:46 +0200 |
| commit | 8f65c4552d5d968572162bf1a65e53a80b72f937 (patch) | |
| tree | 3d844bfb7a4720b371eb30f415826a3244df9f74 /scripts/generate_rust_target.rs | |
| parent | 016b221209f43be864c880c521a3c0e1d9ef1c16 (diff) | |
i2c: npcm: restore slave addresses array length
The smatch check warning is "buffer overflow 'npcm_i2caddr' 2 <= 9".
The original design supports 10 target addresses although only 2
addresses are required for current implementation.
Restore the npcm_i2caddr array length to fix the smatch warning.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202408130818.FgDP5uNm-lkp@intel.com/
Signed-off-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
