Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6832363ybh; Thu, 8 Aug 2019 06:24:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZnRkyGt3hI/rjW3LkEyzmFoMMFTWgRNUS7QqcUasbb2xQnfvAF2ewYCfKFpMWI/QpF1JA X-Received: by 2002:a63:e14d:: with SMTP id h13mr12778242pgk.431.1565270640405; Thu, 08 Aug 2019 06:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565270640; cv=none; d=google.com; s=arc-20160816; b=d3ZQi178TU7qBHUthoutjQ9AhmkCq6/K18AjvMF1g+Q60ae7xcATIBVxJX0+AJNWqy PNWolALQWtDUSzXtbbd+GkY/qSO6YcjOEXEaQ/jaWzVwv0+pLopDN85RbZvN9qUwJtTA WXqhqGdrvDmyuKX1Jg80FuVxK2QhnxqwxnCP7UxX7DpdDZE6+uApLDTHGAUUhqBytF/6 +XYOQVXZjVsJTX2cjtQWoszy48aNUGtW92ESsmMUZMl/AIw4rgZZZbfn/rrDCzbS4zBq yFyAyjT52V/AmhLYVc9F0khxBV8NcYd4ZY6pjVixfe/5Csg1dRSriJUnY+ueLHjwyOw4 licQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bZD8PJAMR5BkIyRTPsnVnxuwX5w6X2cfW/MOj/cqArs=; b=K3oBJFWU4UWt4XRY6yRL6XUtPuQNe1M493ILXMDeLrXhjL1IJfo8cEiillCdhfLs1z a7gJOf61GdGAZiBXRo5OIu4yuxckYpkbT2jbmVHvZiwU0yklx18T/Tvn2Oq/r+MGCQUA WeFJkxtNToHIabGIjFMLEJx9M4ts0IL3TNbybBnDswxyDS30sE0s1J7aZ+VVlXDp265l xRID33aOc2E3qqfnfjsigfc2FbMtikVgrD8LqilHzqgeA5hiX8e15qIE+VdxREEHA1Yi qNTFDrHyVyFE5YQnBZ9rGHf7Dyym4q44rBcOp+2wx1FuMkFgoFnZ1trpqo4j4KFzdJg2 qniA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KRl8J3Ln; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si46651690plb.86.2019.08.08.06.23.45; Thu, 08 Aug 2019 06:24:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KRl8J3Ln; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389823AbfHHNVI (ORCPT + 99 others); Thu, 8 Aug 2019 09:21:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:59262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389742AbfHHNVG (ORCPT ); Thu, 8 Aug 2019 09:21:06 -0400 Received: from localhost (unknown [122.178.245.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86F822184E; Thu, 8 Aug 2019 13:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565270465; bh=pKLQbY8ZBQyzxEsdTm5FHa/kLb/f0AIFzt4rPEN/W5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KRl8J3LnLXldScl+++Xg2vjbhZtj4029ePX4xes/Vly+TtN2kTo1GxEDNnXb6O6GB 60yq5sLdsge4xRBy546bpBFqJi4uWWhVDllr28dAGjIK4ctMdQUBpRgNA5dbP5pZR9 Lnp+RtSw2HsjmoD86qxTCJ0GWym2nwDtmWmhB9no= Date: Thu, 8 Aug 2019 18:49:53 +0530 From: Vinod Koul To: Fuqian Huang Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: pl330: use the same attributes when freeing pl330->mcode_cpu Message-ID: <20190808131953.GY12733@vkoul-mobl.Dlink> References: <20190726105947.25342-1-huangfq.daxian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726105947.25342-1-huangfq.daxian@gmail.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-07-19, 18:59, Fuqian Huang wrote: > In function dmac_alloc_resources(), pl330->mcode_cpu is allocated using > dma_alloc_attrs() but freed with dma_free_coherent(). > Use the correct dma_free_attrs() function to free pl330->mcode_cpu. Applied, thanks -- ~Vinod