main: fix uninitialized pointer

This commit is contained in:
Thomas Schoebel-Theuer 2021-03-16 11:55:36 +01:00
parent 0be6e4b4d1
commit be50f1d743
1 changed files with 1 additions and 4 deletions

View File

@ -6254,6 +6254,7 @@ static int make_sync(struct mars_dent *dent)
!dent->new_link) {
return 0;
}
rot = dent->d_parent->d_private;
do_start = _check_allow(dent->d_parent->d_path, "attach");
@ -6283,10 +6284,6 @@ static int make_sync(struct mars_dent *dent)
do_start = false;
}
rot = dent->d_parent->d_private;
status = -ENOENT;
CHECK_PTR(rot, done);
rot->allow_update = true;
assign_dent(&rot->syncstatus_dent, dent);