Fix issue introduced by cherry-pick patch below, the conflict
is not resolved correctly
(MLK-20668-2 fat: Fix issue in rootdir table flush for FAT16/12)
Signed-off-by: Ye Li <ye.li@nxp.com>
set_fatent_value(mydata, itr->clust, dir_newclust);
set_fatent_value(mydata, dir_newclust, 0xffffff8);
} else {
- dir_newclust = dir_curclust + 1;
+ dir_newclust = itr->clust + 1;
if (dir_newclust > 1) {
printf("error: fail to get empty clust for directory entry\n");
- return;
+ return -1;
}
}