summaryrefslogtreecommitdiff
path: root/cmds-rescue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-rescue.c')
-rw-r--r--cmds-rescue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-rescue.c b/cmds-rescue.c
index 7e7344ee..d1bec021 100644
--- a/cmds-rescue.c
+++ b/cmds-rescue.c
@@ -191,6 +191,7 @@ static int cmd_rescue_zero_log(int argc, char **argv)
(unsigned long long)btrfs_super_log_root(sb),
(unsigned)btrfs_super_log_root_level(sb));
trans = btrfs_start_transaction(root, 1);
+ BUG_ON(IS_ERR(trans));
btrfs_set_super_log_root(sb, 0);
btrfs_set_super_log_root_level(sb, 0);
btrfs_commit_transaction(trans, root);