]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Input: gpio_keys - fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Tue, 28 Jun 2011 21:23:30 +0000 (14:23 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Jun 2011 07:22:47 +0000 (00:22 -0700)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c

index 320b59ab8902274cf58ebe0a8781a15098bc83dd..97bada4b680d210fe618412ba2e692c463a22a12 100644 (file)
@@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
        }
 
        input_unregister_device(input);
+       kfree(ddata);
 
        return 0;
 }