diff options
| author | Colin Ian King <[email protected]> | 2017-11-17 18:35:53 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2017-11-23 19:03:58 +0000 |
| commit | e9990d70e8a063a7b894c5cbb99f630a0f41200d (patch) | |
| tree | 47b0be3822a7e6c402faa576a892163b70e8a509 /drivers/irqchip/qcom-irq-combiner.c | |
| parent | irqchip/exiu: Fix return value check in exiu_init() (diff) | |
| download | kernel-e9990d70e8a063a7b894c5cbb99f630a0f41200d.tar.gz kernel-e9990d70e8a063a7b894c5cbb99f630a0f41200d.zip | |
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: f20cc9b00c7b ("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]
Diffstat (limited to 'drivers/irqchip/qcom-irq-combiner.c')
| -rw-r--r-- | drivers/irqchip/qcom-irq-combiner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/qcom-irq-combiner.c b/drivers/irqchip/qcom-irq-combiner.c index 6aa3ea479214..f31265937439 100644 --- a/drivers/irqchip/qcom-irq-combiner.c +++ b/drivers/irqchip/qcom-irq-combiner.c @@ -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); |
