aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-08-15 14:24:36 +0300
committerMartin K. Petersen <[email protected]>2024-08-16 21:07:31 -0400
commit3ba963597d19d88eb06b50af8e8757abbdc9035b (patch)
tree664932de38ae18140c9c3687138c632ed34c8010 /lib/crypto/mpi/mpi-sub-ui.c
parentf51d748195773c7780deca815dc787c281d77eb5 (diff)
scsi: ufs: ufshcd-pltfrm: Signedness bug in ufshcd_parse_clock_info()
The "sz" variable needs to be a signed type for the error handling to work as intended. Fortunately, there is some sanity checking on "sz" on the next line, so negative values would be caught and it doesn't really affect runtime. Fixes: eab0dce11dd9 ("scsi: ufs: ufshcd-pltfrm: Use of_property_count_u32_elems() to get property length") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions