ref: 2259c436be76e22801766f8cd1a056f5b4430139
parent: 41abe98ac77c8a3b54b86264f910f069484bae02
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Feb 23 18:27:50 EST 2024
ext4srv: ext4_recover: fix a deadlock on filesystems without a journal
--- a/sys/src/cmd/ext4srv/ext4.c
+++ b/sys/src/cmd/ext4srv/ext4.c
@@ -364,8 +364,10 @@
int r;
EXT4_MP_LOCK(mp);
- if (!ext4_sb_feature_com(&mp->fs.sb, EXT4_FCOM_HAS_JOURNAL))
- return 0;
+ if (!ext4_sb_feature_com(&mp->fs.sb, EXT4_FCOM_HAS_JOURNAL)){
+ r = 0;
+ goto Finish;
+ }
struct jbd_fs *jbd_fs = ext4_calloc(1, sizeof(struct jbd_fs));
if (!jbd_fs) {