FAILED: patch "[PATCH] xfs: fix a resource leak in xfs_alloc_buftarg()" failed to apply to 6.6-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 6.6-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 <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x 29a7b2614357393b176ef06ba5bc3ff5afc8df69
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026050313-manmade-batting-5838@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 29a7b2614357393b176ef06ba5bc3ff5afc8df69 Mon Sep 17 00:00:00 2001
From: Haoxiang Li <[email protected]>
Date: Wed, 1 Apr 2026 12:02:41 +0800
Subject: [PATCH] xfs: fix a resource leak in xfs_alloc_buftarg()
In the error path, call fs_put_dax() to drop the DAX device reference.
fs/xfs/xfs_buf.c +1 -0
@@ -1756,6 +1756,7 @@ xfs_alloc_buftarg(return btp; error_free: +fs_put_dax (btp->bt_daxdev, mp);kfree (btp);return ERR_PTR (error); }
Sasha Levin
maintainerPATCH 1/1 xfs: fix a resource leak in xfs_alloc_buftarg()
From: Haoxiang Li <[email protected]>
[ Upstream commit 29a7b2614357393b176ef06ba5bc3ff5afc8df69 ]
In the error path, call fs_put_dax() to drop the DAX device reference.
--- fs/xfs/xfs_buf.c | 1 + 1 file changed, 1 insertion(+)
fs/xfs/xfs_buf.c +1 -0
@@ -2045,6 +2045,7 @@ xfs_alloc_buftarg( error_lru:list_lru_destroy (&btp->bt_lru); error_free: +fs_put_dax (btp->bt_daxdev, mp);kmem_free (btp);return NULL ; }
Signature · 1 line
2.53.0