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 6693022D4E9 for ; Fri, 17 Apr 2026 08:40:50 +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=1776415250; cv=none; b=XohczgAbGy29e8sm5YkaYiyQLO+kgYh/0sHpfqIHNFc93c5QdIaNRaQIxRNMfVBSQOC1y0JNeJBY+N5SR94Z2y3PFsE6mcOUP5XL7kmxAK3WIAHZnQc8m+3Ty9FeLc0TyMuF3PnffsxXWl7FM3h8uB8hNUcHFqRgsCWRuPZNtts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776415250; c=relaxed/simple; bh=22JN6Dq3EwTB9lMjfnyhyBhVNs0t2Y592P69k7lFa3U=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=lRztjREg3+7+40c5+1pp/2J/vdkujS9AG0lVwh6vaVIMMQqWmNmjUxmp2RR0fdmojhzBGMJMXynsu37Kog52nnHEtuK8w1EgHpMuaK0TQRwc1l+UQDEhVPtrEiFA9hIBYytaEO2jZ4MZOZjEMQYC/nAu1agjaS0cG3i+Lfgi0is= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uODRvIfn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uODRvIfn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97D93C19425; Fri, 17 Apr 2026 08:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776415250; bh=22JN6Dq3EwTB9lMjfnyhyBhVNs0t2Y592P69k7lFa3U=; h=From:Subject:Date:To:Cc:From; b=uODRvIfnQZxYFgNOy6P2Hhm2jjODYwvVYwkkO5ZHMZvpdcV4xD1UFt415qS0wJOJi 1BZdY0jYtISVNzt5OaN/CgCW65VZi5trwUb92Oixt8elvzKU0QMjTcATvfEpZDyr+8 OlwghzWhLlRiNipuWcgdSiE0GuAVMdmlPWo+rBWPpdnteBmh3ntYz2AuOT6wKCENJ+ yGxuIlHh4T9xkg6wLC8zY/Vilyq/wnyzWxZ5YP0wiB3TQRXUUkaRKPArBpovDi9kTI Xojp3sU89DMv3VwzxdGQzhSkVAbq7y4PRUUlNWoTxOrmvEebxT/DxN4cHGOnKKoUxh 4QiXHEUCkuZnA== From: Lorenzo Bianconi Subject: [PATCH net 0/2] net: airoha: Fix NULL pointer derefrences in airoha_qdma_cleanup() Date: Fri, 17 Apr 2026 10:40:35 +0200 Message-Id: <20260417-airoha_qdma_init_rx_queue-fix-v1-0-db9fa5e468e5@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MTQ5AMBBA4avIrDVR8ROuItIMHcxCMS2RiLtrL L+3eA94EiYPbfKA0MWeNxeh0wTGBd1Mim005FleZYWuFbJsC5rDrmjYcTBym+Okk9TEtxqaYUK Lpa5qDfGxC8X8/ztwFKB/3w/ZiJZ8dAAAAA== X-Change-ID: 20260417-airoha_qdma_init_rx_queue-fix-b9bfada51671 To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi Cc: Simon Horman , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org X-Mailer: b4 0.14.3 Fix two possible NULL pointer derefrences in airoha_qdma_cleanup routine if airoha_qdma_init() fails. --- Lorenzo Bianconi (2): net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue() net: airoha: Add size check for TX NAPIs in airoha_qdma_cleanup() drivers/net/ethernet/airoha/airoha_eth.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- base-commit: 82c21069028c5db3463f851ae8ac9cc2e38a3827 change-id: 20260417-airoha_qdma_init_rx_queue-fix-b9bfada51671 Best regards, -- Lorenzo Bianconi