From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7B4C350D54; Tue, 26 Aug 2025 14:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756217003; cv=none; b=ss8n1HQxO9ApNCU2R2tmMUmjSBR7awYYa0mpKsvslJdIDPIOZUkHPNQGkhKUXx2R/kU0dNfhHkivjzzyE4a+XHX2fUQ6PYC7vz3J2jc+JFXD5lfa0KhorBn4XuN6F+aVY1BOA+oH+lK7WqoAPiOta4pxJrj6M1StZpocD7vzncU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756217003; c=relaxed/simple; bh=iQZMFc2u3VJOzJw8NaoA3yokXDq9kjuPaH/gFrpNReo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zh3RlcZkcYUKt+ExeIZ/PaSk2v5Z84VBvyAevthzRTbkMDnre599cO5bodJnwreApkqX9KpCcedV2Pp60xsweavBr6nj+GcBqDFGMONDyGqwquoGz7a5N4SVyYDHdUa5KKoU9BMSEA498GVZcmACAn/+Bk88rcWUo8WbPqUBluY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WzFiEbPq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WzFiEbPq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AEABC4CEF1; Tue, 26 Aug 2025 14:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756217002; bh=iQZMFc2u3VJOzJw8NaoA3yokXDq9kjuPaH/gFrpNReo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WzFiEbPqyB9spiNcWhf7xKONBDqRJBSP91aGwemHh0UbnswbtfEVNpRvCzxPvBqAU zI8lXYQYp8KFqVWiJHicPdZvHzmpQE4PWF3HTSUXj/Jx3Es6QKWBbnkBnEIeZiP93P qXcZMZEdJgs3236dgNC25mNNEVdZ7vxKcprCo4SA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Anantha Prabhu , Saravanan Vajravel , Selvin Xavier , Kalesh AP , Leon Romanovsky , Sasha Levin Subject: [PATCH 5.15 622/644] RDMA/bnxt_re: Fix to initialize the PBL array Date: Tue, 26 Aug 2025 13:11:53 +0200 Message-ID: <20250826111001.968565123@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110946.507083938@linuxfoundation.org> References: <20250826110946.507083938@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anantha Prabhu [ Upstream commit 806b9f494f62791ee6d68f515a8056c615a0e7b2 ] memset the PBL page pointer and page map arrays before populating the SGL addresses of the HWQ. Fixes: 0c4dcd602817 ("RDMA/bnxt_re: Refactor hardware queue memory allocation") Signed-off-by: Anantha Prabhu Reviewed-by: Saravanan Vajravel Reviewed-by: Selvin Xavier Signed-off-by: Kalesh AP Link: https://patch.msgid.link/20250805101000.233310-5-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/qplib_res.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.c b/drivers/infiniband/hw/bnxt_re/qplib_res.c index 401cb3e22f31..7585d5a55db2 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_res.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_res.c @@ -121,6 +121,7 @@ static int __alloc_pbl(struct bnxt_qplib_res *res, pbl->pg_arr = vmalloc(pages * sizeof(void *)); if (!pbl->pg_arr) return -ENOMEM; + memset(pbl->pg_arr, 0, pages * sizeof(void *)); pbl->pg_map_arr = vmalloc(pages * sizeof(dma_addr_t)); if (!pbl->pg_map_arr) { @@ -128,6 +129,7 @@ static int __alloc_pbl(struct bnxt_qplib_res *res, pbl->pg_arr = NULL; return -ENOMEM; } + memset(pbl->pg_map_arr, 0, pages * sizeof(dma_addr_t)); pbl->pg_count = 0; pbl->pg_size = sginfo->pgsize; -- 2.50.1