From patchwork Wed Dec 12 01:08:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Peethambaran X-Patchwork-Id: 13484 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 648D323FDB for ; Wed, 12 Dec 2012 01:08:45 +0000 (UTC) Received: from mail-ia0-f171.google.com (mail-ia0-f171.google.com [209.85.210.171]) by fiordland.canonical.com (Postfix) with ESMTP id 14CB0A184C3 for ; Wed, 12 Dec 2012 01:08:44 +0000 (UTC) Received: by mail-ia0-f171.google.com with SMTP id k27so219938iad.16 for ; Tue, 11 Dec 2012 17:08:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:mime-version:date:message-id:from:to:subject :x-beenthere:x-mailman-version:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=xHvBBBmR+yDZivjV8ixnglCH0Ka5g98W7LLdMhc4EFM=; b=i6ThIZLGdm1pk7PED2vIrrZhhzbIg3Z0jAfbG6ZYSkePPjBaHaaFJyCTgUNw2XrOAk oxUJIPKk87fli2WREzFUWXl67juLLWXTj/gNDQBWh+BkLWGUWanIZmqB056bVQIWv5DY 3Wnpf8E6ktW5tVdqsrFycca6UDkvyjsPAQp2RKUtEbX5FU/PZqDuogf59N50m8hRzs4/ U4n1PGUo1e85FLsWzgWv1gkClcVShyv3bhFDnDWeAZ5N9VDgixu1TLiSGzMkNIG+BPxM oemouFnCn++d52f3Uy5wex9vZENy2mV7A4qipWymPUQ2UCSH02UtJUh7zVlhnEVXxqJh tAWQ== Received: by 10.50.91.195 with SMTP id cg3mr11825813igb.57.1355274524321; Tue, 11 Dec 2012 17:08:44 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp168215igt; Tue, 11 Dec 2012 17:08:43 -0800 (PST) Received: by 10.14.175.133 with SMTP id z5mr153002eel.15.1355274522917; Tue, 11 Dec 2012 17:08:42 -0800 (PST) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id j49si59132945eep.69.2012.12.11.17.08.40; Tue, 11 Dec 2012 17:08:42 -0800 (PST) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TiaoR-0000eQ-Ag; Wed, 12 Dec 2012 01:08:39 +0000 Received: from mail-ie0-f182.google.com ([209.85.223.182]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TiaoQ-0000dl-6O for linaro-mm-sig@lists.linaro.org; Wed, 12 Dec 2012 01:08:38 +0000 Received: by mail-ie0-f182.google.com with SMTP id s9so539295iec.27 for ; Tue, 11 Dec 2012 17:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=D12w/rResRJBc1xl4VwmPx45E6ugxjHuwb1jR8lI4C0=; b=qNYMV4yaYR7sK9uSGVAio4CdYFnHEIrtTnEVHeoeEYDqCrLH/E7b7bQF/VpyRu8E41 EQu3Sl9gtTGBVU/1hvmwkWNxb8fhJhjmeeuaG78S6eljZPJsBZVGacyYtQRxdij+4rYF 92XjolFXVyc3GBRX/dctlOW+AUfLIqauyq7yBoZM/iI8eqvoIpZobbWWdWac1ZGZ7XSA BDStW/UdbvP5vWT4gDXPL82tvUz3ZShFZLLVhdrlsyZEUwI5vZfXjcoNf6EppcrIAe8H DVrK1uDumI6iBJKiMuMHE/Vf4qRNgNlY+mP3tOs9D7dKUkfwUCvcC407xMKzSY8cr/r2 ehQw== MIME-Version: 1.0 Received: by 10.50.150.174 with SMTP id uj14mr12048628igb.19.1355274517221; Tue, 11 Dec 2012 17:08:37 -0800 (PST) Received: by 10.64.34.170 with HTTP; Tue, 11 Dec 2012 17:08:37 -0800 (PST) Date: Wed, 12 Dec 2012 06:38:37 +0530 Message-ID: From: Nishanth Peethambaran To: linaro-mm-sig@lists.linaro.org, Rebecca Zavin Subject: [Linaro-mm-sig] [PATCH] gpu: ion: Fix memory leak of sg_table in carveout heap X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQlhd1nmH401QLkt5o3XdnnoKemjPTVAykVLxWo1RjLFfAfWA5AlIbkP1jjp/dQ7LXHdO+/+ Change-Id: I03ce713510a942d5a290ec56c1c7490602632fd9 Signed-off-by: Nishanth Peethambaran --- drivers/gpu/ion/ion_carveout_heap.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/ion/ion_carveout_heap.c b/drivers/gpu/ion/ion_carveout_heap.c index ce8d311..e8164a6 100644 --- a/drivers/gpu/ion/ion_carveout_heap.c +++ b/drivers/gpu/ion/ion_carveout_heap.c @@ -107,6 +107,7 @@ void ion_carveout_heap_unmap_dma(struct ion_heap *heap, struct ion_buffer *buffer) { sg_free_table(buffer->sg_table); + kfree(buffer->sg_table); } void *ion_carveout_heap_map_kernel(struct ion_heap *heap,