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 2EF51274B5F; Sun, 1 Mar 2026 01:58:36 +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=1772330316; cv=none; b=OoHvxzW5GFAALCuWXeK1FFSSMSNSFnj1dVcSxjRQYJC+2RY5JK6MQTlJbhoqtj7jPfcbwn8+/9R4+3MD0A2t6jdGGlExq84em/YTpUQ8gBHs8k5Zh3SOznWYXwRMLfnY7pgM4LZ5E19CJOVm1Y7ZuXJfwkNQb4uasfWHCBn+wSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330316; c=relaxed/simple; bh=uSGVva4oQZqtHGlv5a679Nr6mlOU4HQxsER79JbxhYI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b03Hb0JmoiZyTzvduMaYSBNZQeRKBQFyy4FkqooNAd5bhAWuT4gUUwGoi1duNaM8EfB/QEBLopNHXCufypzQ7g+n5Wn/nePElacSa08iF9Hz/Y+xE6X8ojEkLn+fq2Fe/aBGaVxbY0v/UbLAi4k6kmA7G95c0UBYasq2pTDJUXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hs1kzyGa; 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="hs1kzyGa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F884C19421; Sun, 1 Mar 2026 01:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330316; bh=uSGVva4oQZqtHGlv5a679Nr6mlOU4HQxsER79JbxhYI=; h=From:To:Cc:Subject:Date:From; b=hs1kzyGafbTWpwTV5iWhh4iSVRvMb8ltqmsRGfe7X3W7zq9ft3IyMM4GCIUwU56eh 21jvMz43hwIfsrboXOMpkfiNWtjQnLufLogcSFEILzgnQTQzTxZDWUJaHLhGcAN/r9 DUG/0Eqmi7hNjHRLcoUpov9MnBfazGCPizDYE0P6s9tfkp89bZ34DSmZNdYmAXnAP3 IshrZfA/r5UTHxdJitqgE+mYCqGQNNkSPMERJSQCugpKdo/zoEbWYojXoKblT+5LxO 0bF/v99So6sKgbChezh/NtcJRN6kCbRbE/6qe6YKafIjtWHZhpkA939/I/Ku1RrQI5 hqGOGRRxSRqIQ== From: Sasha Levin To: stable@vger.kernel.org, fourier.thomas@gmail.com Cc: Jakub Kicinski , netdev@vger.kernel.org Subject: FAILED: Patch "net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle" failed to apply to 5.15-stable tree Date: Sat, 28 Feb 2026 20:58:34 -0500 Message-ID: <20260301015834.1724075-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From ffe68c3766997d82e9ccaf1cdbd47eba269c4aa2 Mon Sep 17 00:00:00 2001 From: Thomas Fourier Date: Fri, 13 Feb 2026 17:43:39 +0100 Subject: [PATCH] net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle dma_free_coherent() in error path takes priv->rx_buf.alloc_len as the dma handle. This would lead to improper unmapping of the buffer. Change the dma handle to priv->rx_buf.alloc_phys. Fixes: 6af55ff52b02 ("Driver for Beckhoff CX5020 EtherCAT master module.") Cc: Signed-off-by: Thomas Fourier Link: https://patch.msgid.link/20260213164340.77272-2-fourier.thomas@gmail.com Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/ec_bhf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ec_bhf.c b/drivers/net/ethernet/ec_bhf.c index 67275aa4f65b2..0c86cbb0313c3 100644 --- a/drivers/net/ethernet/ec_bhf.c +++ b/drivers/net/ethernet/ec_bhf.c @@ -423,7 +423,7 @@ static int ec_bhf_open(struct net_device *net_dev) error_rx_free: dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc, - priv->rx_buf.alloc_len); + priv->rx_buf.alloc_phys); out: return err; } -- 2.51.0