Skip to content
Commit d9ef632f authored by Will Deacon's avatar Will Deacon
Browse files

perf: arm-cmn: Fix unsigned comparison to less than zero

Ensure that the 'irq' field of 'struct arm_cmn_dtc' is a signed int
so that it can be compared '< 0'.

Link: https://lore.kernel.org/r/20200929170835.GA15956@embeddedor


Addresses-Coverity-ID: 1497488 ("Unsigned compared against 0")
Fixes: 0ba64770 ("perf: Add Arm CMN-600 PMU driver")
Reported-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent d8f6267f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment