diff options
| author | 2024-08-30 11:46:34 +0800 | |
|---|---|---|
| committer | 2024-09-10 00:36:46 +0200 | |
| commit | 8f65c4552d5d968572162bf1a65e53a80b72f937 (patch) | |
| tree | 3d844bfb7a4720b371eb30f415826a3244df9f74 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | i2c: mpc: Use devm_clk_get_optional_enabled() to simplify code (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 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
