mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
irqchip/qcom: Fix u32 comparison with value less than zero
The comparison of u32 nregs being less than zero is never true since
nregs is unsigned. Fix this by making nregs a signed integer.
Fixes: f20cc9b00c ("irqchip/qcom: Add IRQ combiner driver")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: [email protected]
Cc: Jason Cooper <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
parent
0e54705b0e
commit
e9990d70e8
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ static int __init combiner_probe(struct platform_device *pdev)
|
|||
{
|
||||
struct combiner *combiner;
|
||||
size_t alloc_sz;
|
||||
u32 nregs;
|
||||
int nregs;
|
||||
int err;
|
||||
|
||||
nregs = count_registers(pdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue