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 A29431FBCB5; Tue, 26 Aug 2025 13:36:04 +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=1756215364; cv=none; b=Gg9W9EisxWq99+GJiPIJ5kt0xKuuX16d7DpfFc2GcRv6CgJtYEvItvzHnqBuc6EwyWWf86vz7IjxC8OUwK4jO0y9kChbLhLf4W8BLoiAQ4tegevkOCudpl7EBuhEDIFdyxsbhEvK2KhS5omNl0XrzoDjvkHirs3jz6287yKRMEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756215364; c=relaxed/simple; bh=BnJpyGK4pwVFH1oq5ZeQZbQBTjbcWKnRhufbeYsw/tk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XUjPVDopDgupPPMYg6e0A2HEVdNnDC8uzvwQYjNyMiI2OA4H1j4b4DXl7ltnjlxcawwQ+422f2VTiHTYawiF7CVLflw/T4TxdGvIoynTSMX3U9SVq8OSkLlDhrjJyyxTU13bzjL5eaieAcxw7JvTbohVHxwIsUykVjBxXYNrimc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vxAVliK9; 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="vxAVliK9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34DBAC4CEF1; Tue, 26 Aug 2025 13:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756215364; bh=BnJpyGK4pwVFH1oq5ZeQZbQBTjbcWKnRhufbeYsw/tk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vxAVliK9b/jP/WUaQ33PL7FhIj+kYXuIuzIvVf9Bw4pbvZIKWczPb7PQ2pH7W05Z2 QsdsBQicSTAN/H11EfxO7qgDmBjQve/f0ZLIm74ROdwy4uuVhEVa7qnJd1e+pTcIs6 9elLsnjZ18afPHAhjLWnL/COSW9t3+Eq35GjdfXo= 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.1 456/482] RDMA/bnxt_re: Fix to initialize the PBL array Date: Tue, 26 Aug 2025 13:11:49 +0200 Message-ID: <20250826110942.091887244@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110930.769259449@linuxfoundation.org> References: <20250826110930.769259449@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.1-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 203350c6e00f..4962d68bf217 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