Received: by 10.223.185.116 with SMTP id b49csp1043264wrg; Fri, 16 Feb 2018 11:21:38 -0800 (PST) X-Google-Smtp-Source: AH8x227WYF5Z1bfeMZ4+08edYGBZagcFVukeM9s9cI9Yg/Tq0wCfunIqXSBF2Z1tGU9uBlweJ/e0 X-Received: by 10.99.97.7 with SMTP id v7mr6075842pgb.239.1518808898554; Fri, 16 Feb 2018 11:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808898; cv=none; d=google.com; s=arc-20160816; b=oWgnaaKo6VYdj2RnSPPyQ8JmRVRiUG/d+0TVq4F0NodAJXR5lAWMZzI1LfX3AoU654 ogV+unb4c18lUdVuEtpR/qd+RJcwZf2j7gMwn2LSk5VCinXjEkfS/krIkMi+RdkC6//u fQAarFwd3b0SC6RlRQmMdLgns9yxe9sRtVOaCQkKIpaD09+zdSsxVOCSnrYdTXYDi7rh F9Ufb9H5KJP4bBXMEpPmTFMooPOR5RXtdivcEvDL5Qk19VHFrBeUU4+lO3SWPL/w3WLS dMups0VKR16d0vn2T29VX1SSOP4W6erAGTwjaBhCqO7g+1N8eayDSpDYNVM3t20tTyn8 a7aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=dNXEIKXEwccg+LwrtrqKdIEgxNHpdrZP4HVAIcv2nq8=; b=K8UwYUsHToSdSO8JbiYAgTtxOB6m+t/PkOEkuNH3rHPvYQcssiL6me1sKZ11ywRRGZ dnAqvEqpXWDfFVz0qehfsG9HD3iVb00fNEte4iSyi0RfDUewBImDvvOm3GY6vBRp4bwX hbL7nKYxls8GgyBrGi9aExdBhlhhaIN1dmgmbW2V0Lg6/PzVbBtu+SrOIrkcKt6+FWc2 k0Cg1LQq3YYhKTVtLvdXkYUk5Uc474L7d/MRNrkqD0tPP1tW4mns7ui3FB9G/kwyuhT9 7tXWaZ5cueNDutnSUJdraC9tvOq25qSpYYCG1wAKHLo6KplsyqieXIfrawE8MXzTlKC8 CajQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qdab+Ibj; dkim=pass header.i=@codeaurora.org header.s=default header.b=JmS4RTbk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si128739pln.821.2018.02.16.11.21.24; Fri, 16 Feb 2018 11:21:38 -0800 (PST) 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=@codeaurora.org header.s=default header.b=Qdab+Ibj; dkim=pass header.i=@codeaurora.org header.s=default header.b=JmS4RTbk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758956AbeBPRpc (ORCPT + 99 others); Fri, 16 Feb 2018 12:45:32 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:54912 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752872AbeBPRpb (ORCPT ); Fri, 16 Feb 2018 12:45:31 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6609B60F93; Fri, 16 Feb 2018 17:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518803130; bh=Xk/KcSXvt2UdL5FqBUfccHXnb1oy7DUCh+BFR9VQk28=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=Qdab+IbjXym2E6xwjDqKwldM2EPADeDHO0ckLJW3+7O460MP0Mmo0YlNlmzTOu1Tm CWabQlgbhfc6UDIbpS3Jqo0ODKk+pydmzIxSTmJ+X1ycBjnvMxpYiFwvT1oTTYg/VM pwWbc+C30XWQSt7wzukZRiH5EdtmzzetW+J5Z/cg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lmark-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lmark@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 53E3F60817; Fri, 16 Feb 2018 17:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518803129; bh=Xk/KcSXvt2UdL5FqBUfccHXnb1oy7DUCh+BFR9VQk28=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=JmS4RTbkWbo2+sUaWpwIAbNxlLTjnQ7KBWG8zAtPUuoyE8Hn5b7HclA1HO33r116l SziC18eGbPhrpPdVMgqDRTv/VgSXnVK/86cIcKNBycX0HalCYP+15+KLX1r//nteqD 3CL3z7/QHhC85RnTdi+RzMUQOuo9TWSjxscByE9I= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 53E3F60817 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=lmark@codeaurora.org Date: Fri, 16 Feb 2018 09:45:28 -0800 (PST) From: Liam Mark X-X-Sender: lmark@lmark-linux.qualcomm.com To: Laura Abbott cc: Dan Carpenter , Sumit Semwal , devel@driverdev.osuosl.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: android: ion: Initialize dma_address of new sg list In-Reply-To: <9aa626cf-c122-55af-0c95-a9e9c12c6f19@redhat.com> Message-ID: References: <20180212065620.iqlzczhqzlrmel5n@mwanda> <9aa626cf-c122-55af-0c95-a9e9c12c6f19@redhat.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Feb 2018, Laura Abbott wrote: > On 02/12/2018 01:25 PM, Liam Mark wrote: > > > > On Mon, 12 Feb 2018, Dan Carpenter wrote: > > > > > On Fri, Feb 09, 2018 at 10:16:56PM -0800, Liam Mark wrote: > > > > Fix the dup_sg_table function to initialize the dma_address of the new > > > > sg list entries instead of the source dma_address entries. > > > > > > > > Fixes: 17fd283f3870 ("staging: android: ion: Duplicate sg_table") > > > > Signed-off-by: Liam Mark > > > > > > How did you find this bug? What are the user visible effects of this > > > bug? I'm probably going to ask you to send a v2 patch with a new > > > changelog depending on the answers to these questions. > > > > I noticed the bug when reading through the code, I haven?t seen any > > visible effects of this bug. > > > > From looking at the code I don?t see any obvious ways that this bug > would > > introduce any issues with the current code base. > > > > Liam > > > > Given the way we duplicate the sg_list this should be harmless but you > are right it's cleaner if we initialize the new list. You can add my > Ack when you update with a new change log clarifying this. > > Thanks, > Laura > Will do. Thanks, Liam Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project