Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146313pxv; Fri, 9 Jul 2021 19:29:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5KUzH7873GUu6qdHtrKUhCmOfQkFxou0Wq/WHOijAbL+K5Dpkvy+UVm/rjqcomWrZ3lfq X-Received: by 2002:a17:907:1c95:: with SMTP id nb21mr33167778ejc.163.1625884158740; Fri, 09 Jul 2021 19:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884158; cv=none; d=google.com; s=arc-20160816; b=xMmUMff+oiiiJi9zWUVdKF6JvlVrLyPf8teoofSf2z/JV5poPPA9hdwL7gWGXIOSjZ W5arIXM7S1sPdaKFLdFL2M+ceZFAvVKeIGGmzyHTaY5MEdBOwUxzo53XYC852TZLrwtH CY6CzJE0oIDhKwowPEXDHKYboL+6/ITvS6ZRPnKNMsbjSy5BOr3SbE4fmgWQ6WYRencv XJ6mK8Ho6b2EauXMM4oa/DCRc1KwjWey5R1jmjp8Imvj33hXBVc2FFFQx4+UsAEm37AD +iY6oGNRY2aHFsyelF1KWOYZ7QimGL+Oiwr+rLOIRUCZCy0mKWGVveU3qqm/TuDLcYzR oN7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WEzrkmzDLe5MrWRc1aFXwBl8Y67Opce3ZlS/ZUi8cGE=; b=uYsBK+Or0zJD3SUzhR1OoYYjtpcp1pruZ/CWL9g20hvUG5qGOz6jeTsEgy2brskS+y Tw8RuRDoOMa+wFm4zmTN4ZQLojZOWwZmvy5AuUo+a1LA1gllz1mtZp+I+3TypinJKAN4 0i5C6AZSVmBZQcSyGi1K1R7YgOiGX8epOIwny6fovGZFJ9wCtmNmioRENtnBn2jnqJOV SYk2utQXzKX/kTaUDbrwmljQuqAJBG8WLeTjYR5oFKV8Gp5tVkZuPoLLOEwtayC7W5ZM yd6H1+LWehqqO2zqrpSSp6Fb+KIbxz5Qk0NcjVGWJHYtBURNDNVgRyOX+KnIX6sFp/Qq v0tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RU2cHB8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si8885127ejf.146.2021.07.09.19.28.55; Fri, 09 Jul 2021 19:29:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RU2cHB8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234456AbhGJC32 (ORCPT + 99 others); Fri, 9 Jul 2021 22:29:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:43064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233629AbhGJC1e (ORCPT ); Fri, 9 Jul 2021 22:27:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C373613F4; Sat, 10 Jul 2021 02:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883874; bh=79/HYkvwxCe55o5MFGHNpPyyxL7jdePrtaRs3K2/aC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RU2cHB8wO6IszQHxJ+YyArNcprOx9v8ODwNvHZXZCHnRXD8T1zkd7f3JloxcNhCH9 aarB2te4/ycDLtuztXygPM24SbdDoo2afLtwY6JKODAPYdciA1OIHcCOb+bDvqLL13 EoovPWm2uWiC2mtPjhsfW6y8mi6hUZyvAjLo+XV9x5IsVrnR9lcU3JmXbMdJlA58Xu q6DBdKfoKVolYpuM7f/1wSop4ryRqQUgCvHwHsGD5wxv5n7oz93/jyPOlxlyFoXWKe kC1WgOUN5V7cRRiA+o+eHzm5LFxN+VRfr0cka5rG+DcXlc6eVRAVq2zgC4FGdN3FKd St8KG4g/4n6eg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Robin Gong , Vinod Koul , Sasha Levin , dmaengine@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 04/93] dmaengine: fsl-qdma: check dma_set_mask return value Date: Fri, 9 Jul 2021 22:22:58 -0400 Message-Id: <20210710022428.3169839-4-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Gong [ Upstream commit f0c07993af0acf5545d5c1445798846565f4f147 ] For fix below warning reported by static code analysis tool like Coverity from Synopsys: Signed-off-by: Robin Gong Addresses-Coverity-ID: 12285639 ("Unchecked return value") Link: https://lore.kernel.org/r/1619427549-20498-1-git-send-email-yibin.gong@nxp.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/fsl-qdma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index ed2ab46b15e7..045ead46ec8f 100644 --- a/drivers/dma/fsl-qdma.c +++ b/drivers/dma/fsl-qdma.c @@ -1235,7 +1235,11 @@ static int fsl_qdma_probe(struct platform_device *pdev) fsl_qdma->dma_dev.device_synchronize = fsl_qdma_synchronize; fsl_qdma->dma_dev.device_terminate_all = fsl_qdma_terminate_all; - dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); + if (ret) { + dev_err(&pdev->dev, "dma_set_mask failure.\n"); + return ret; + } platform_set_drvdata(pdev, fsl_qdma); -- 2.30.2