From 7e31d6dd3419e27ca74b2f9844d5a014f05e814d Mon Sep 17 00:00:00 2001 From: Wilfred Mallawa Date: Mon, 26 Oct 2026 15:34:55 +1000 Subject: [PATCH] xfs: fix unwind handling during xfs_mount_sysfs_init() The goto for failing to setup /error/metadata jumps to the wrong place in xfs_mount_sysfs_init(). Fix it. Fixes: a9a7b9e8686d ("xfs: add support for lazy direct read bounce buffering") Signed-off-by: Wilfred Mallawa Reviewed-by: Christoph Hellwig Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- fs/xfs/xfs_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_sysfs.c b/fs/xfs/xfs_sysfs.c index e77917ac179d..4a6a8c92c3a1 100644 --- a/fs/xfs/xfs_sysfs.c +++ b/fs/xfs/xfs_sysfs.c @@ -906,7 +906,7 @@ xfs_mount_sysfs_init( "metadata", &mp->m_error_meta_kobj, xfs_error_meta_init); if (error) - goto out_remove_csum_dir; + goto out_remove_error_dir; return 0;