gpio: idt3243x: Fix signedness bug in probe
Subsystems (2)
PATCH 1/1 gpio: idt3243x: Fix signedness bug in probe
The "parent_irq" variable needs to be signed for the error handling to work.
Fixes 30fee1d7462a ("gpio: idt3243x: Fix IRQ check in idt_gpio_probe")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/gpio/gpio-idt3243x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-idt3243x.c +1 -1
@@ -132,7 +132,7 @@ static int idt_gpio_probe(struct platform_device *pdev)struct device *dev = &pdev->dev;struct gpio_irq_chip *girq;struct idt_gpio_ctrl *ctrl; -unsigned int parent_irq; +int parent_irq;int ngpios;int ret;
Signature · 1 line
2.20.1
Quoted 24 lines · Dan Carpenter
The "
parent_irq" variable needs to be signed for the error handling to work.Fixes 30fee1d7462a ("gpio: idt3243x: Fix IRQ check in idt_gpio_probe")Signed-off-by Dan Carpenter <[email protected]>--- drivers/gpio/gpio-idt3243x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpio/gpio-idt3243x.c +1
-2@@ -132,7 +132,7 @@ static int idt_gpio_probe(struct platform_device *pdev)struct device *dev = &pdev->dev;struct gpio_irq_chip *girq;struct idt_gpio_ctrl *ctrl; -unsigned int parent_irq; +int parent_irq;int ngpios;int ret; --
Quoted 2 lines
2.20.1
Hi Dan!
Fixes for this and the same issue in mpc8xxx have already been fixed by Yang Li.
Bart