]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: fix a resource leak in xfs_alloc_buftarg()
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Wed, 1 Apr 2026 04:02:41 +0000 (12:02 +0800)
committerCarlos Maiolino <cem@kernel.org>
Tue, 7 Apr 2026 11:17:35 +0000 (13:17 +0200)
commit29a7b2614357393b176ef06ba5bc3ff5afc8df69
tree3c54c17d00eb16f4c31efc5d5ad8c60b17c688d3
parentc6584888864e36d6225a6c16d8c39fd2aa9a45d8
xfs: fix a resource leak in xfs_alloc_buftarg()

In the error path, call fs_put_dax() to drop the DAX
device reference.

Fixes: 6f643c57d57c ("xfs: implement ->notify_failure() for XFS")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c