diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c index 6e6d69fe2..ba44a5a91 100644 --- a/fs_mgr/fs_mgr.c +++ b/fs_mgr/fs_mgr.c @@ -464,7 +464,7 @@ static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_ if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) { errno = EINVAL; if (end_idx) *end_idx = start_idx; - if (attempted_idx) *end_idx = start_idx; + if (attempted_idx) *attempted_idx = start_idx; return -1; }