aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-add.c
diff options
context:
space:
mode:
authorStanley Chu <[email protected]>2025-03-10 02:33:04 +0000
committerAlexandre Belloni <[email protected]>2025-03-17 22:46:06 +0000
commitd6cb667b8e15bac47f19aec4bd81f3916b2ca9f5 (patch)
treeb8dccad0b5530a2e5a92f3b8dc690c450a6fcdc8 /lib/crypto/mpi/mpi-add.c
parenti3c: master: svc: Fix npcm845 DAA process corruption (diff)
downloadkernel-d6cb667b8e15bac47f19aec4bd81f3916b2ca9f5.tar.gz
kernel-d6cb667b8e15bac47f19aec4bd81f3916b2ca9f5.zip
i3c: master: svc: Fix i3c_master_get_free_addr return check
The return value of i3c_master_get_free_addr is assigned to a variable with wrong type, so it can't be negative. Use a signed integer for the return value. If the value is negative, break the process and propagate the error code. This commit also fixes the uninitialized symbol 'dyn_addr', reported by Smatch static checker. Fixes: 4008a74e0f9b ("i3c: master: svc: Fix npcm845 FIFO empty issue") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Stanley Chu <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions