From patchwork Sun Sep 26 08:59:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 209692 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8Q90kcJ031525 for ; Sun, 26 Sep 2010 09:00:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753608Ab0IZI7x (ORCPT ); Sun, 26 Sep 2010 04:59:53 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:51674 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937Ab0IZI7v (ORCPT ); Sun, 26 Sep 2010 04:59:51 -0400 Received: by eyb6 with SMTP id 6so1054568eyb.19 for ; Sun, 26 Sep 2010 01:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=HYifYAY6eqC5u6znPiUg1ZLUmpol2RkXHiObUfITDmY=; b=A6/wkmcATyULB3SDhMbN4iH0ZVXXQmetEAglFKDH3EWjqo89cyWRn8i2yyx4ywr87V ZL+yTil6WcIr8k6xBf9CFASeJyFuh4PDQkjBng5s86meU80hjm+TTccd6toSs1qA0wdi zMPFESFAc4rfRBg+mXFMtHUq7s7B953cjMg9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=CFZcI4+aVbd6cZDGcOxZrUn+XzEIKnfjeLqmheiVvlRgkj2QSsqMp2CBJOJR8HYCSz 87sZ4b+NMpW7IviKcipGMVU1sDz/z0/V8Su31AaZEEzaYLuSo4U4Ankj5kwIWZ3tBLCZ nOZ0nyhAZ/lkwwoK+dxV+c5hI6PRFqdJMKOxk= Received: by 10.213.82.11 with SMTP id z11mr1895173ebk.29.1285491589797; Sun, 26 Sep 2010 01:59:49 -0700 (PDT) Received: from localhost ([91.78.209.69]) by mx.google.com with ESMTPS id v59sm6335551eeh.4.2010.09.26.01.59.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Sep 2010 01:59:49 -0700 (PDT) From: Vasiliy Kulikov To: kernel-janitors@vger.kernel.org Cc: Dmitry Torokhov , Cyril Chemparathy , Kevin Hilman , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] touchscreen: tnetv107x: fix input_device leak Date: Sun, 26 Sep 2010 12:59:47 +0400 Message-Id: <1285491587-32707-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 26 Sep 2010 09:00:46 +0000 (UTC) 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));