From patchwork Sun Sep 26 08:59:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 209732 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 o8Q91WMa031627 for ; Sun, 26 Sep 2010 09:01:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755160Ab0IZJBC (ORCPT ); Sun, 26 Sep 2010 05:01:02 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:59317 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868Ab0IZI7r (ORCPT ); Sun, 26 Sep 2010 04:59:47 -0400 Received: by mail-ew0-f46.google.com with SMTP id 23so1057366ewy.19 for ; Sun, 26 Sep 2010 01:59:46 -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=mtR3jMDw4MPzvVvEUPI2mMxVzvhsX4/DFCUNebVgxOo=; b=wpORPrO7gQ0gKd3r+fKcUZSEX/uPcCWzydbSlJuCjJYJJJB3PRrP1hwnFyuGIvtu0N +qiJtonlciWSvQxqxXSKTzqi00jrs0u2cpK6Ra+3AiRRBzVY9SKP1VpqCzgH6cceXaXL +ZxZMZX7XiZrrFCyGncOEOlJr/eDi5UrEaLrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=RgM0YwbnI7NuUXSkAQSku2yx1Ll1RrcTW/eXzdVFHUAUoRVuM4RHyR3KOgv+8EtNfW uZ/nPu5hzxh+QG6jO4T1OwXY7GvT0JrGp2arjuU8VoQc+I1leSem5p3I15EMP2xvk4Ll QEIElFxMw/xXYWBLG7LcqnyTidQ4kWqAA3jOo= Received: by 10.213.32.79 with SMTP id b15mr4763194ebd.39.1285491586903; Sun, 26 Sep 2010 01:59:46 -0700 (PDT) Received: from localhost ([91.78.209.69]) by mx.google.com with ESMTPS id z55sm6335211eeh.9.2010.09.26.01.59.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Sep 2010 01:59:46 -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] keyboard: tnetv107x: fix input_device leak Date: Sun, 26 Sep 2010 12:59:44 +0400 Message-Id: <1285491584-32664-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:01:32 +0000 (UTC) diff --git a/drivers/input/keyboard/tnetv107x-keypad.c b/drivers/input/keyboard/tnetv107x-keypad.c index b4a81eb..1ea20e1 100644 --- a/drivers/input/keyboard/tnetv107x-keypad.c +++ b/drivers/input/keyboard/tnetv107x-keypad.c @@ -305,6 +305,7 @@ static int __devexit keypad_remove(struct platform_device *pdev) free_irq(kp->irq_press, kp); free_irq(kp->irq_release, kp); input_unregister_device(kp->input_dev); + input_free_device(kp->input_dev); clk_put(kp->clk); iounmap(kp->regs); release_mem_region(kp->res->start, resource_size(kp->res));