Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016Ab0KVIhq (ORCPT ); Mon, 22 Nov 2010 03:37:46 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:33207 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953Ab0KVIho (ORCPT ); Mon, 22 Nov 2010 03:37:44 -0500 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=gDzes6UkK3jEj5MM6vb5769HAQ5mBBqOZFLtgP6hocjOEg7uws9RnvVWC5/wnVRnPI DxmuRRv8HBDxN+to46hJTOXhUh52rB4sDAOdFZ3MJvOw5Nh5jjfMl4OhnwJXpeutkhy6 BI6hiDYV2cZBRnRKrB5/mnGCZCiIn2+YeVTqc= Subject: [PATCH 0/4] fix a memory leak related to request_mem_region/release_mem_region usage From: Axel Lin To: linux-kernel Cc: Chris Ball , Andrew Morton , linux-mmc@vger.kernel.org, Vipin Bhandari , David Brownell , Nicolas Pitre , Eric Miao Content-Type: text/plain Date: Mon, 22 Nov 2010 16:42:39 +0800 Message-Id: <1290415359.5471.4.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 30 This serial of patches fixes a memory leak related to request_mem_region and release_mem_region usage. request_mem_region() will call kzalloc to allocate memory for struct resource. release_resource() unregisters the resource but does not free the allocated memory, thus use release_mem_region() instead to fix the memory leak. Axel Lin (4): [ARM] davinci_mmc: fix a memory leak [ARM] mvsdio: fix a memory leak [ARM] pxamci: fix a memory leak [ARM] mxcmmc: remove a unnecessary release_resource() call drivers/mmc/host/davinci_mmc.c | 5 +++-- drivers/mmc/host/mvsdio.c | 4 ++-- drivers/mmc/host/mxcmmc.c | 1 - drivers/mmc/host/pxamci.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) -- 1.7.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/