From patchwork Tue Jun 28 02:46:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 923052 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5S2ubBb024310 for ; Tue, 28 Jun 2011 02:56:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756261Ab1F1CrL (ORCPT ); Mon, 27 Jun 2011 22:47:11 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:53545 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756263Ab1F1Cqa (ORCPT ); Mon, 27 Jun 2011 22:46:30 -0400 Received: by gyh3 with SMTP id 3so2081137gyh.19 for ; Mon, 27 Jun 2011 19:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=YmQ3gQRpUlDLXn7fpIO1Rk+qAlKeTLpSSPaMwmkX7tc=; b=oSWaifZFXNO0hg8UcLBinbq7XiEqPKcXvgSB5nG47IblsxQQwbXkc3t/D6ZAZDyV9B ST7LQz9De0jNt/znPr09yGd7q1aCuGGqJL1HkGtcfr265Vp4kw0OU+aicg8z1NaPCuWB 7uACnMTsEfz76o6TbMDsQ3MYfXyPfvrFS4MzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=Awqo4QC8/Q8wKf5GRulb53mHcdkYzw3qwlIkCDLguv5ZWnKZINGy6Kwz3AvMBLEQwC xGSKBtZAT9EgE+OPELIQV8s3Zq8ab+XPX2Sk7j7fxQyutw8Tclyo3BltK7o8at2t7e0q uUKbpHD++lmtXnwAvJmraYPD28iqTUmMpKgGw= Received: by 10.236.181.164 with SMTP id l24mr9664841yhm.360.1309229189108; Mon, 27 Jun 2011 19:46:29 -0700 (PDT) Received: from [218.172.236.76] (218-172-236-76.dynamic.hinet.net [218.172.236.76]) by mx.google.com with ESMTPS id i61sm3912880yhe.75.2011.06.27.19.46.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Jun 2011 19:46:28 -0700 (PDT) Subject: [PATCH] Input: gpio_keys - fix a memory leak From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Phil Blundell , Dmitry Torokhov , linux-input@vger.kernel.org Date: Tue, 28 Jun 2011 10:46:21 +0800 Message-ID: <1309229181.5235.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 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.6 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Jun 2011 02:56:37 +0000 (UTC) Signed-off-by: Axel Lin --- drivers/input/keyboard/gpio_keys.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 6d0e2f6..cc4bdec 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev) } input_unregister_device(input); + kfree(ddata); return 0; }