Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4624227pxj; Wed, 12 May 2021 09:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzps0teFCD4dIHU1hZWbdZWkqVoLk3OOocR/q0cXL+WVp96aNnBEnF001ED1K3adHmM+kY2 X-Received: by 2002:a2e:2f1d:: with SMTP id v29mr17987694ljv.44.1620836929335; Wed, 12 May 2021 09:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836929; cv=none; d=google.com; s=arc-20160816; b=q3Ie10EBTfdSe8bKq+c2QhlfhUzKKb0RQ17CgC0zSR5XhjohJ6ARl41FthVH4i8sdO 65aefqZHsFmfGwXJn0pNO6RTaVNu9qEDQvIIjmoAAjTtH5qn+3xWCBBy6aVKcpFJQ4W4 WrCiJCJBDN5x3OxF2brVfoPmkAZ5nWO8z+/QdIsPyO7g0N4f7aQUCrTeU7PZLxytmmxe fWnOjG8brUxxu4lKT0CL0YXcJU6xnkdz9vcq9j0132U6RGdM3r5KIFEfq5zY+NID4sOE k1LrjdWNu6oOMO51CsqP4XsgkCg9Yf/JFU6YbQDsDbbBJEyTEjZ8dkKuEER0Fbqi3vLk aUGg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TgvgY5lIAYeZp4Yx/rjEgvtWryMNNHBsw3kiM+pkALg=; b=C7fNHaHlQZDh2B0+v2ukUCG8seijcpj6uhiJwEVuDJkaRzawzabUWHm2D2Ybc+/jmX w3gI6RVGEi8BXHFeKZs9ee8lf0lmV/UeET2J9VgSI2rSnlKXaTkirwnYdwXOaWyf04L0 RXUWPMZeIXgGGC46Q1OGMA6iWz9nzO19huY5B271K2AWh22bWd8XQNtltRV4dtCbsSe6 NKhj9uFsodI9pFvJGG1XXfGIk7Ke4UmWuW1lmd5YeDrAMnxu37gfqotlMz49iZe1DIyx t9wsBLVpDJCPBNYoU02y8UUnpNnzHzBl5CdtnI1FgpK5qmvlTQh7Z1WXdno2O+jV6aXj YIxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OcIy7b//"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si322407ljm.10.2021.05.12.09.28.19; Wed, 12 May 2021 09:28:49 -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=@linuxfoundation.org header.s=korg header.b="OcIy7b//"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241359AbhELQ1F (ORCPT + 99 others); Wed, 12 May 2021 12:27:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:58064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236446AbhELPh6 (ORCPT ); Wed, 12 May 2021 11:37:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0FCE61998; Wed, 12 May 2021 15:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832788; bh=6BKg3WyU3FvHuei4CU0LAZrPY7WWOUaPTzCUmbBQKeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OcIy7b//jD5pdiu7fOztA0/2OUAwxsV/NDptJjSAZisfZ1IznS74OgFASaR4/Iw8P gPnhSxwwjZC4mQPvUo4Mqg6SW/8pVj/E2Fd9PmQRIzNVLtP1viqH2GyOOw9pMoeZxo XZHNNzzEOhSXHF4EpaKNgGH2DukbnsKmLoq7vdrY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Wang Wensheng , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.10 423/530] RDMA/bnxt_re: Fix error return code in bnxt_qplib_cq_process_terminal() Date: Wed, 12 May 2021 16:48:53 +0200 Message-Id: <20210512144833.675720068@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Wensheng [ Upstream commit 22efb0a8d130c6379c1eb64cbace1542b27e37ff ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://lore.kernel.org/r/20210408113137.97202-1-wangwensheng4@huawei.com Reported-by: Hulk Robot Signed-off-by: Wang Wensheng Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.c b/drivers/infiniband/hw/bnxt_re/qplib_fp.c index 995d4633b0a1..d4d4959c2434 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.c @@ -2784,6 +2784,7 @@ do_rq: dev_err(&cq->hwq.pdev->dev, "FP: CQ Processed terminal reported rq_cons_idx 0x%x exceeds max 0x%x\n", cqe_cons, rq->max_wqe); + rc = -EINVAL; goto done; } -- 2.30.2