Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp504119img; Thu, 21 Mar 2019 02:57:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCzWInWuLJM6ac9XlQ1oeLK0czUVGTJTOWiRAaNZS8Bs/aRVidF0igP/ki0eXkHv28PCD6 X-Received: by 2002:aa7:8b0c:: with SMTP id f12mr2454794pfd.154.1553162276206; Thu, 21 Mar 2019 02:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553162276; cv=none; d=google.com; s=arc-20160816; b=ESvgq2nZYnvVcIVgHDKKEbsQ/pgrHJue1/JASlIYVY8ozkrqFro+6WiziN7EcQcUlI HpCD+EBzAnEZMbRiBGRXAHwd6Zoo+SlRCPgncfxX7o1dVBV3cONp1b9gbS11xCj1Ar67 d5Hl1bTKxhYccQ5uhXqJREEbLeR3rQtBFQw/fOPGAJZj3OoIEP8nev1vjE0i+xWUXjjp 0TixUG+CrGtxjE2h686VTAL1mFDHSdMRMFrCPm0SO4n7n0xvstxzXFiOQsv8RTDyPIUz LxzWUtAJC1YZyxcfXlGVbdailZHuGM8A/0S7yINDmur9VDfH23qdZRXirKzWJRgrRlfh uhVg== 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=c6YseJls7lBbdXFKGT2BV2zFiJHRfuL8IM6gahHWj8U=; b=C4NzYGCzOawD9GwlsAGWn8uh6Fh0mf/Wdc3xPN/fw1p3iWfUmOZLos1vG64Qtmb8rk nhpuoGE4zWlydSIoVnbcXvWKpZ911QlqHzbpBlKtjBTuvSM33I6wk2vyM3efcpxeZoCv bZ5kF3mA0cCwj618WuwsOOGYLxF485KymlSK1HQjvzx36C6bsTB8A5KJQEPxGRWaWGE8 h8AGMu98lsrKHJNifWR0TcyQT+wYZWeUjbmnhrxcL/OY9wCgc6Nbm3A0uRo2V6mYd6qL I5gLNz+jYygsotGSFuVcNci4lFPMI25aozxV6YAyiBSU3sCzJq7l3k5t7M38+rdS411P unWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zGa19erK; 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 t1si3948872plo.371.2019.03.21.02.57.40; Thu, 21 Mar 2019 02:57:56 -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=zGa19erK; 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 S1728221AbfCUJ4y (ORCPT + 99 others); Thu, 21 Mar 2019 05:56:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:48782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbfCUJ4y (ORCPT ); Thu, 21 Mar 2019 05:56:54 -0400 Received: from localhost (unknown [95.98.27.187]) (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 D9C1A20850; Thu, 21 Mar 2019 09:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553162213; bh=mZxaMo9WIyT7wiTqSEb+QquejKDgZi3vKpJlfVJbydE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zGa19erK+FB1Cs6qCiQFfqZDKz5vbdEeDEy+FyADmWsmZlCpOJ0nKQ3iEmsRghS/E yrxJJ68wvJzcP7Fz/FvE2LUihrYYIh3OOVdmka8tVqa0Y3gbci7gL5rTvLn5dQUrp8 8mw4abGGlTrZHhqdYS/lT4DQwsC13GetX7743AJE= Date: Thu, 21 Mar 2019 10:56:49 +0100 From: Kroah-Hartman To: Bo YU Cc: Arnd Bergmann , open list , =?utf-8?B?5LqO5rOi?= Subject: Re: [PATCH] misc/fastrpc: add checked value for dma_set_mask Message-ID: <20190321095649.GA2836@kroah.com> References: <20190319020519.15209-1-tsu.yubo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 05:31:51PM +0800, Bo YU wrote: > On Tue, Mar 19, 2019 at 10:05 AM Bo YU wrote: > > > > There be should check return value from dma_set_mask to throw some infos > > if fail to set dma mask. > > > > Detected by CoverityScan, CID# 1443983: Error handling issues (CHECKED_RETURN) > > > > Fixes:f6f9279f2bf0 (misc: fastrpc: Add Qualcomm fastrpc basic driver model) > > Signed-off-by: Bo YU > > --- > > drivers/misc/fastrpc.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c > > index 39f832d27288..36d0d5c9cfba 100644 > > --- a/drivers/misc/fastrpc.c > > +++ b/drivers/misc/fastrpc.c > > @@ -1184,6 +1184,7 @@ static int fastrpc_cb_probe(struct platform_device *pdev) > > struct fastrpc_session_ctx *sess; > > struct device *dev = &pdev->dev; > > int i, sessions = 0; > > + int rc; > > > > cctx = dev_get_drvdata(dev->parent); > > if (!cctx) > > @@ -1213,7 +1214,11 @@ static int fastrpc_cb_probe(struct platform_device *pdev) > > } > > cctx->sesscount++; > > spin_unlock(&cctx->lock); > > - dma_set_mask(dev, DMA_BIT_MASK(32)); > > + rc = dma_set_mask(dev, DMA_BIT_MASK(32)); > > + if (rc) { > > + dev_err(dev, "32-bit DMA enable failed\n"); > > + return rc; > > + } > > > Ping? > Do me need resend it? 2 days? Please give us time to catch up on patches, right after the merge window closed. This isn't a big deal, we have much higher priority patches to review. It will be gotten to eventually :) thanks, greg k-h