Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1143629pxv; Fri, 9 Jul 2021 19:23:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcqbuYZNmCtiMjVz53CrQU8MZ2FTDDbt/NUIwH09SYVK71nDfc2HImx4Ywoo6GlK/KoJTV X-Received: by 2002:a50:8e16:: with SMTP id 22mr49752206edw.369.1625883799204; Fri, 09 Jul 2021 19:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883799; cv=none; d=google.com; s=arc-20160816; b=01WuDV3dh/oUJp8GJ/xtW90GeA4BN52c2iR2NKDnMlWurWt4fu04id0lxXogP09f1R UWHv253iiO/a/2hWfaqf52OYUApJ/4dXBJcNUWwcUYiTEW5O1HUMn4nR/FM+bWEXn1Gv zVoZZ/gUrbtiOjvrJLdV1Pvu0RO1J19A3ln43ageqFSqadjyYk5F5vrXikUlMNR90GM9 OYTw2WrRlTySVM9CawxpdHXoPS0enOg57aeb1dx/5d7pAE/smt54ZAfX3L7JAkuzpciE GKphRzm6RERW4mQLTZbIGJsj7MgDh2JvQYUfYFFOWn/FOV/Hvs7jNMJHvoPXmCBkkfw6 Qpow== 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=WiQvkdZF2Qm16cfHIFc1QBAt2LBmFROnXCzLsthUrfAEbMiDkhOtSnjNpiDmOYC66C vnnz3H5aibr+N1KW7lbByarkukmfF+Ik4eaN52lArWBR2ztYNafxBjUSiIndNsOk9xp0 18fgPIUGdjiI/IB9xztouiU1qZc1xVmPHTKMzBxqafyV09IROCK+KCc+eM78mw283LT+ BBuK0sO9gFL4L0K/4uLisaWQ6wlzNxg7qvO55lP0VwMR2BwYhBQMEPLlP0nfFGubpEOV jBwqwFzBOI32ZZb+7e3snrEfV/7SHj+6LBsjWJ4eEcd3yZfeCh18GyVMi2X59RlKyrzI IRZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X4o/XOWx"; 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 df15si6263623edb.542.2021.07.09.19.22.56; Fri, 09 Jul 2021 19:23:19 -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="X4o/XOWx"; 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 S231822AbhGJCYs (ORCPT + 99 others); Fri, 9 Jul 2021 22:24:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:41476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231753AbhGJCYq (ORCPT ); Fri, 9 Jul 2021 22:24:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C3FD613D6; Sat, 10 Jul 2021 02:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883722; bh=79/HYkvwxCe55o5MFGHNpPyyxL7jdePrtaRs3K2/aC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4o/XOWxjXm6mCmFnVctC0lef5zpu+pFsNjvDsDNTq2nI4H+nz7z8g9T0SF/00N+z j2agmBXckBYZyv6TQz1wZ+qLpHF8LkGxVsxXonjmm+IsraKtofEGA0XojNPMJfGAZb 9G6asp05iYKtLFRqYESqQRYGyVxagWM0HdysQ7mm2Fo3Af0KKqJmNoEJ1FpTIcA8u+ tT/CkCDVfGmrXcgKUQBViBO08t2VRdrMtCBx4PGPScU2RPrN3JsLckgeLzlTE3+TjI hNERuryS6BwavD/n+TqmTP9aE6VhFiB3gn2YfRSKuDlVE1wirPieipNHEhfuEJKKa6 GFASg93sySeUw== 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.12 004/104] dmaengine: fsl-qdma: check dma_set_mask return value Date: Fri, 9 Jul 2021 22:20:16 -0400 Message-Id: <20210710022156.3168825-4-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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