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 D7544223DE5; Tue, 26 Aug 2025 13:13:06 +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=1756213986; cv=none; b=jQqmzy/5GaxtbbWIiTcvBw/b5bf9QIyNinHMs3uQ8j8drHobpklimnOq9fpJosamug/Af9udDWw+QUO0sJf/ksBoobBZnqSMRoNjzdrALErmeRWFvUvi6Q8ux33/NMFcMLRsCCHgogASToC9wWu25UUY9k9Dld5jxP26wzF6iak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756213986; c=relaxed/simple; bh=WYd3n+HwT2VG/XJ9GxQY4zwQdVwHqnFQVQjUgOyO4M4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PTqbESvJPVQDyeZESTB6WtpcwUnER/mJdi8aw7LeUuKoqqwb//yHGNuSGGeraqJct2+NM/voiqT3hcvpuiHTBElw+8PbEZjuDxue3P+j/xBvHw2Ty1sUEOzPHdOf7e9QOE+Qt88GBWq4REExlOzygTaxFodvGQeYlz5F5CheCK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VhK+BhxB; 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="VhK+BhxB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9D43C4CEF1; Tue, 26 Aug 2025 13:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756213986; bh=WYd3n+HwT2VG/XJ9GxQY4zwQdVwHqnFQVQjUgOyO4M4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VhK+BhxBhKcPbgO1DLiOsCBLPhw408rW2WBMYAB1j1Fw+LbbUL3kIRY8TlWW9wSih mvXsdcxiNAKso16YZJGsOKxJxEkKmFU6Qv1p+b5GzFrKnLAcdHjD8WbkqwlYkHKLlW GsvPCpxZAVrX/3Bx+kQf/9u2vmx3uglLehEVWr9s= 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 6.6 555/587] RDMA/bnxt_re: Fix to initialize the PBL array Date: Tue, 26 Aug 2025 13:11:44 +0200 Message-ID: <20250826111007.142166951@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110952.942403671@linuxfoundation.org> References: <20250826110952.942403671@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 6.6-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 96ceec1e8199..77da7cf34427 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_array(pages, sizeof(void *)); if (!pbl->pg_arr) return -ENOMEM; + memset(pbl->pg_arr, 0, pages * sizeof(void *)); pbl->pg_map_arr = vmalloc_array(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