From patchwork Fri Nov 22 16:54:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrew.liu200917@gmail.com X-Patchwork-Id: 3223461 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2752F9F3A0 for ; Fri, 22 Nov 2013 16:54:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BDAF207AA for ; Fri, 22 Nov 2013 16:54:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42B30207A9 for ; Fri, 22 Nov 2013 16:54:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755570Ab3KVQyO (ORCPT ); Fri, 22 Nov 2013 11:54:14 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:50504 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753339Ab3KVQyO (ORCPT ); Fri, 22 Nov 2013 11:54:14 -0500 Received: by mail-pa0-f44.google.com with SMTP id fa1so1556976pad.3 for ; Fri, 22 Nov 2013 08:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=FOy0QxpW1FqE43/jdXAJcY6nsiv44fsEjRDJaCoU2H0=; b=ieYr7+qp2z3vol6Ty+c2/DREfLGb9xtUilBVG/nyDRCELGuWErt3+GMopgDJfLv825 nEMUC/mnqctC51IrcB/kjyGejatpqIegI1jq4vDvGqz+D1VRCdpesB2/ekYlz6F6Vjrz FOQOqwTjYu3rg43FPJJ1gKc6plMDEpvq621fpJA3bdQxYs4AquV+hllz9pAsvc2dADL9 cOWZvxHap07u+tO51loyv8UtW6otybQto/LgodQw1jnRsvzvDfEkkPe/NnEzt3Vz/M6C BnsRSd0Zzl1q1YCDZ72ORdld0SYvbKBla6yS09EdZnCznR3ZfZDOzwP2OLuHvouqVYTi 8fAw== X-Received: by 10.68.28.231 with SMTP id e7mr2202969pbh.180.1385139253763; Fri, 22 Nov 2013 08:54:13 -0800 (PST) Received: from localhost ([118.186.197.26]) by mx.google.com with ESMTPSA id i10sm61448324pat.11.2013.11.22.08.54.10 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 22 Nov 2013 08:54:13 -0800 (PST) From: andrew.liu200917@gmail.com To: dan.j.williams@intel.com, vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Liu Subject: [PATCH] edma: free the same memory twice Date: Sat, 23 Nov 2013 00:54:03 +0800 Message-Id: <1385139243-5892-1-git-send-email-andrew.liu200917@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Liu Signed-off-by: Andrew Liu --- drivers/dma/edma.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index bef8a36..04bc1be 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -305,7 +305,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg( edma_alloc_slot(EDMA_CTLR(echan->ch_num), EDMA_SLOT_ANY); if (echan->slot[i] < 0) { - kfree(edesc); dev_err(dev, "Failed to allocate slot\n"); kfree(edesc); return NULL;