Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp540698img; Thu, 21 Mar 2019 03:52:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuIZpkS/lw2cUMyEvfRqb7F5JcuMMQ6Ak1l6wKYwJYNm++bIIpb62NkCGhU84PAVMB/gty X-Received: by 2002:a17:902:b201:: with SMTP id t1mr2875938plr.55.1553165574613; Thu, 21 Mar 2019 03:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553165574; cv=none; d=google.com; s=arc-20160816; b=v6HhEcmHgUmUGEe2FtIyPhVvr7lbDPlFh4gWitxheZvrC2PJ3n9TG7Gj71sclSiEU8 dh1VCBndNGfqbnyWq97ga/GuBC3HGp2cO06X6xiHysUscEHDAg1zfBQpy1RI71848y3x vUXF7U/zJ+DRsm0q4J1sDwwBU30eq8Ib54PXOxyjIIUuZZacckri1xUdjoS9lPDOPLPV aYuDzZwYMIT63uSuRX56y4cOAx3yTQ6zp/VBqXOvq9ql5rIbsGMSuXujvloUsHb0dXrI JcV9fXCRT/i2aGTtmTZ7/lQH5Q+xrSmjx6oorYrMwlbktPc/TBm9HWTyedmmoBdiavwq xkZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RfzfzxUXKGrc6yMTco9MzK9M4vYWklrTL94YRCug4Ms=; b=xV0P22Z9pkm3J1BjlR3fxMzs8CRCSl5lI4uk2ymh/XneSGBrxutmAm0U6z3FsWcKRW 82qTTZBjM58hBVe1JbSXTuq1Nx2BcV8n2jG3VBQU1eQr5G+JRPNax6attZDQMEqrYwOY 7jpDT/7femEoLMFsAwcbdZ8FrUI5ocLxICFTfykFHnwKjxqbHLlNqueFcWhNWh9207M2 4Hcpngf2M5lX7D5GOW6Z3mi1Y8y+jDD2c0i7kQ/Xc2PmSkH6Z1Wjpx727DZKEpqWqicO zBSDpGkp4XxKPrVS+r5g3cXFLlxFZkRxZqahC+RzLElArrTrW1wSaq48lzmMz79SYMhD NfXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A6RI09ay; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si3941497pfc.201.2019.03.21.03.52.36; Thu, 21 Mar 2019 03:52:54 -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=@gmail.com header.s=20161025 header.b=A6RI09ay; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727908AbfCUKvz (ORCPT + 99 others); Thu, 21 Mar 2019 06:51:55 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:37587 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbfCUKvz (ORCPT ); Thu, 21 Mar 2019 06:51:55 -0400 Received: by mail-yw1-f65.google.com with SMTP id w66so4414529ywd.4 for ; Thu, 21 Mar 2019 03:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RfzfzxUXKGrc6yMTco9MzK9M4vYWklrTL94YRCug4Ms=; b=A6RI09ayIG4EbSJh2oEdo32z7EzMbrqR9+Kqk0gWTLbYBLR/PrNgndQRf++WXIVsFd o1Yi5jIPTaCEbkNdgBAnfcFylaAu/MVPM2THWiaWX5c6XURxMTEwkQEg+x3NU7FG//dU w9bemDTCR1xulq+2KWkU+/swpiV7xvszM93Nt5+L0IniSAKr5wM8d25Jt95IduoY7Zfl bftlwGJ/TAAVfTmpFfPeBd8E52SiDbvbeRl0jterIOJrvaWAygvhuyjoDHpgoN7OKcMh XFj9R76rM2NvkykFz/fZvwXKSayHAJagpbba5Ysxnf9se0ASnfB9vXl2mEeQkLk/ACna E3wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RfzfzxUXKGrc6yMTco9MzK9M4vYWklrTL94YRCug4Ms=; b=F7bFmHRFrb8VUE2tQEUmUpNp55hf2w1NJIBslQCpam5A485ODfuK775BRnHNpocoD4 jQZnJegXzplmwCNpVmDqQjz6U6oLpI7FKpGZrxNj5MEn17ZCTWDOTiOaNaFpaJl1WHcr jn5raizlCtkVJUDOa4d5lbg/7du/NVTPjPca6y2jsb9r+3wo4KBLvM4s7rsYK2WCFV2O ZxTq+eYst7YODUtuLMqB67OH5GFT6FcGerUkc0jS9ZgKUQtwR2dmlTEFlvGuCXvoHnMR k0VsitCpYmasE3q9STBk8VBXIp4hQMEwUNWc7+EhCVV6v1SQCeAHMkAdUC09uO8TfybR cfhw== X-Gm-Message-State: APjAAAWQglBZtKfRW8RbLrcgADKw5U7rEjYmB2YM/TpITVOb7FmRzaR1 qwmFjBNAQltdYCuPdLReTCTEF+pOl8pHQmGVVtY= X-Received: by 2002:a25:2184:: with SMTP id h126mr2322808ybh.6.1553165514496; Thu, 21 Mar 2019 03:51:54 -0700 (PDT) MIME-Version: 1.0 References: <20190319020519.15209-1-tsu.yubo@gmail.com> <20190321095649.GA2836@kroah.com> In-Reply-To: <20190321095649.GA2836@kroah.com> From: Bo YU Date: Thu, 21 Mar 2019 18:51:43 +0800 Message-ID: Subject: Re: [PATCH] misc/fastrpc: add checked value for dma_set_mask To: Kroah-Hartman Cc: Arnd Bergmann , open list , =?UTF-8?B?5LqO5rOi?= Content-Type: text/plain; charset="UTF-8" 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 5:56 PM Kroah-Hartman wrote: > > 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 :) Ok, thank you. I am not sure the trival patch is ok so disturb you :) > > thanks, > > greg k-h