[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1285491587-32707-1-git-send-email-segooon@gmail.com>
Date: Sun, 26 Sep 2010 12:59:47 +0400
From: Vasiliy Kulikov <segooon@...il.com>
To: kernel-janitors@...r.kernel.org
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Cyril Chemparathy <cyril@...com>,
Kevin Hilman <khilman@...prootsystems.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] touchscreen: tnetv107x: fix input_device leak
tsc_probe() calls input_free_device() on error, but tsc_remove()
doesn't.
---
drivers/input/touchscreen/tnetv107x-ts.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/input/touchscreen/tnetv107x-ts.c b/drivers/input/touchscreen/tnetv107x-ts.c
index cf1dba2..82d9a01 100644
--- a/drivers/input/touchscreen/tnetv107x-ts.c
+++ b/drivers/input/touchscreen/tnetv107x-ts.c
@@ -361,6 +361,7 @@ static int __devexit tsc_remove(struct platform_device *pdev)
input_unregister_device(ts->input_dev);
free_irq(ts->tsc_irq, ts);
+ input_free_device(ts->input_dev);
clk_put(ts->clk);
iounmap(ts->regs);
release_mem_region(ts->res->start, resource_size(ts->res));
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists