Input: Fix cleaning up KEY_STROBEs after error in tosakbd_probe()
Subsystems (2)
PATCH 1/1 Input: Fix cleaning up KEY_STROBEs after error in tosakbd_probe()
Direct to fail2 to gpio_free() the KEY_STROBEs as well as the KEY_SENSEs.
Signed-off-by Roel Kluin <[email protected]>
---
Or is there an obscure reason why this shouldn't happen?
drivers/input/keyboard/tosakbd.c +2 -2
@@ -344,7 +344,7 @@ static int __devinit tosakbd_probe(struct platform_device *pdev) {" direction for GPIO %d, error %d\n" , gpio, error);gpio_free (gpio); - goto fail; + goto fail2; } }
@@ -353,7 +353,7 @@ static int __devinit tosakbd_probe(struct platform_device *pdev) {if (error) {printk (KERN_ERR "tosakbd: Unable to register input device, " "error: %d\n" , error); - goto fail; + goto fail2; }printk (KERN_INFO "input: Tosa Keyboard Registered\n" );
Quoted 3 lines · Roel Kluin
Direct to fail2 to
gpio_free()theKEY_STROBEsas well as theKEY_SENSEs.Signed-off-by Roel Kluin <[email protected]>
Applied, thank you Roel.
Signature · 1 line
Dmitry