aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTyrone Ting <[email protected]>2024-08-30 11:46:34 +0800
committerAndi Shyti <[email protected]>2024-09-10 00:36:46 +0200
commit8f65c4552d5d968572162bf1a65e53a80b72f937 (patch)
tree3d844bfb7a4720b371eb30f415826a3244df9f74 /scripts/generate_rust_analyzer.py
parent016b221209f43be864c880c521a3c0e1d9ef1c16 (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 <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Tyrone Ting <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions