From: Kroah-Hartman <gregkh@linuxfoundation.org>
To: Bo YU <tsu.yubo@gmail.com>
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"open list" <linux-kernel@vger.kernel.org>, 于波 <yuzibode@126.com>
Subject: Re: [PATCH] misc/fastrpc: add checked value for dma_set_mask
Date: Thu, 21 Mar 2019 10:56:49 +0100 [thread overview]
Message-ID: <20190321095649.GA2836@kroah.com> (raw)
In-Reply-To: <CAKq8=3K26Vbg4Vk4+C4F6vjB5mv8SiSxe7mBxLrtph3MHGdi+A@mail.gmail.com>
On Thu, Mar 21, 2019 at 05:31:51PM +0800, Bo YU wrote:
> On Tue, Mar 19, 2019 at 10:05 AM Bo YU <tsu.yubo@gmail.com> 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 <tsu.yubo@gmail.com>
> > ---
> > 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
next prev parent reply other threads:[~2019-03-21 9:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-19 2:05 [PATCH] misc/fastrpc: add checked value for dma_set_mask Bo YU
2019-03-21 9:31 ` Bo YU
2019-03-21 9:56 ` Kroah-Hartman [this message]
2019-03-21 10:51 ` Bo YU
2019-03-27 17:10 ` Greg KH
2019-03-28 1:06 ` Bo YU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190321095649.GA2836@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tsu.yubo@gmail.com \
--cc=yuzibode@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.