Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3168528rwd; Mon, 22 May 2023 09:32:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rDTR0NEX8e1GJVHkXTuWYHQTDeU7N5jZJ34NSnjr7nbIQsb1Tw1u2ZoEPgRsQJ4LmKTmP X-Received: by 2002:a05:6a20:4c9:b0:109:c161:a67d with SMTP id 9-20020a056a2004c900b00109c161a67dmr8820555pzd.18.1684773124231; Mon, 22 May 2023 09:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684773124; cv=none; d=google.com; s=arc-20160816; b=ns+m8ClIa1OFpJMnpJS3VAcYwZ9HNNasNiDj+GemkL5wI1ZfVFvX6P3RbDq7CIwKWg ZXUpRHh1eVEfOhOhbIIHPuz6yUChE2fO74APLUXpZmblXVXED1tiNphIZH28Fd9n34RK Ytj8T7jSIXR7a7tT+uW3/wJBqx19jBrLHSR2uGoE+rSOVJwYGzYuSQjjMEdjgd9b/GcK QDeF0ra/MMcEOLpuhJCbA7wVa2Buj3RRLYMJcIVOnyExJBU7W3glZfGlq/5LM54Xj8CF pHDfqsmCVOl+j1mRNIP11luG573F6CPGr8XDXdPO7hvfpsCRqs51MSPxLvIKaa571nMG 3PrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=km4j2s4DxFYBj5IqQZpZGBT18iSiZGMmniVT01hBFpw=; b=ELUE6jTwNx2HT0oIbUaeRLMblh3qr9SrSrn3E5Kth5tIcfvCQJ2Zzipp2z9I2FNUSl Yz+ctSG38FAcn+0R4THKSsnbik00hOrCRHX8qEEZzdhQf36SCA4v2pBzHpEWfihV7M/+ E0hCw4a21OW8Jion9f13NSGyX07OZMp+mvjeo5rFpv8YuEEdDEalOcNSJgR90Z08bP1i 3DJ4dhfA8y6+jHUlYtCGqO/7yEeT1vXhu7L/sFNVaRflI24oEPpRiOInA6Hz6UK2bNQL +RxYkFT7yS5e441AgfRHUKBfvyZEm2ZMG0svieiaQKCZjGmU8puCcQirOQ6GuTVcLFNE lEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UDCThWn6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a637e43000000b0052c7ad564e2si5103910pgn.707.2023.05.22.09.31.51; Mon, 22 May 2023 09:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UDCThWn6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbjEVQUz (ORCPT + 99 others); Mon, 22 May 2023 12:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231405AbjEVQUu (ORCPT ); Mon, 22 May 2023 12:20:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6098B130; Mon, 22 May 2023 09:20:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E25AB61787; Mon, 22 May 2023 16:20:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9920C433D2; Mon, 22 May 2023 16:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684772444; bh=vSFHOs36phaNDhoJJwl55AGouRVa+xyYfnlhHvEqarI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UDCThWn6U9qygT9+6U/z8hefj6+FpfR9CLVMzW39pDAP5loaWjYK0WK//B6amxkgW tlFEXSxoGnsji4RG2hy9U+hwOBuIVz1psQBNYJjbbQVgCvoRE9kxB8wztEytFSoCX5 3Bqbv+pQrYgUqjx0j/1NGXwG1VCvg/5xKZoFssro= Date: Mon, 22 May 2023 17:20:40 +0100 From: "gregkh@linuxfoundation.org" To: Shenwei Wang Cc: Sherry Sun , "jirislaby@kernel.org" , "ilpo.jarvinen@linux.intel.com" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH] tty: serial: fsl_lpuart: Check the return value of dmaengine_tx_status Message-ID: <2023052225-slimy-struggle-6fee@gregkh> References: <20230522025111.3747-1-sherry.sun@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 22, 2023 at 02:45:12PM +0000, Shenwei Wang wrote: > > > > -----Original Message----- > > From: Sherry Sun > > Sent: Sunday, May 21, 2023 9:51 PM > > To: gregkh@linuxfoundation.org; jirislaby@kernel.org; Shenwei Wang > > ; ilpo.jarvinen@linux.intel.com > > Cc: linux-serial@vger.kernel.org; linux-kernel@vger.kernel.org; dl-linux-imx > > > > 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 > > --- > > 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