From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: Shenwei Wang <shenwei.wang@nxp.com>
Cc: Sherry Sun <sherry.sun@nxp.com>,
"jirislaby@kernel.org" <jirislaby@kernel.org>,
"ilpo.jarvinen@linux.intel.com" <ilpo.jarvinen@linux.intel.com>,
"linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
dl-linux-imx <linux-imx@nxp.com>
Subject: Re: [PATCH] tty: serial: fsl_lpuart: Check the return value of dmaengine_tx_status
Date: Mon, 22 May 2023 17:20:40 +0100 [thread overview]
Message-ID: <2023052225-slimy-struggle-6fee@gregkh> (raw)
In-Reply-To: <PAXPR04MB918546704F3DB435675B747A89439@PAXPR04MB9185.eurprd04.prod.outlook.com>
On Mon, May 22, 2023 at 02:45:12PM +0000, Shenwei Wang wrote:
>
>
> > -----Original Message-----
> > From: Sherry Sun <sherry.sun@nxp.com>
> > Sent: Sunday, May 21, 2023 9:51 PM
> > To: gregkh@linuxfoundation.org; jirislaby@kernel.org; Shenwei Wang
> > <shenwei.wang@nxp.com>; ilpo.jarvinen@linux.intel.com
> > Cc: linux-serial@vger.kernel.org; linux-kernel@vger.kernel.org; dl-linux-imx
> > <linux-imx@nxp.com>
> > Subject: [PATCH] tty: serial: fsl_lpuart: Check the return value of
> > dmaengine_tx_status
> >
> > Coverity reports the Unchecked return value (CHECKED_RETURN) warning:
> > Calling dmaengine_tx_status without checking return value.
> >
> > So here add the return value check for dmaengine_tx_status() function to make
> > coverity happy.
> >
> > Fixes: cf9aa72d2f91 ("tty: serial: fsl_lpuart: optimize the timer based EOP logic")
> > Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
> > ---
> > drivers/tty/serial/fsl_lpuart.c | 8 +++++++-
> > 1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index
> > 92a3bd0f4158..f2a47a8c5b85 100644
> > --- a/drivers/tty/serial/fsl_lpuart.c
> > +++ b/drivers/tty/serial/fsl_lpuart.c
> > @@ -1286,13 +1286,19 @@ static void lpuart_dma_rx_complete(void *arg)
> > static void lpuart_timer_func(struct timer_list *t) {
> > struct lpuart_port *sport = from_timer(sport, t, lpuart_timer);
> > + enum dma_status dmastat;
>
> Should be reverse Christmas tree order.
Not a requirement at all, please don't force it.
thanks,
greg k-h
prev parent reply other threads:[~2023-05-22 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 2:51 [PATCH] tty: serial: fsl_lpuart: Check the return value of dmaengine_tx_status Sherry Sun
2023-05-22 14:45 ` Shenwei Wang
2023-05-22 16:20 ` gregkh [this message]
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=2023052225-slimy-struggle-6fee@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=shenwei.wang@nxp.com \
--cc=sherry.sun@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox