Merge "fs/fat/fat_write: Fix return value on flush_fat_buffer() failure"

This commit is contained in:
Linux Build Service Account 2022-03-29 05:39:46 -07:00 committed by Gerrit - the friendly Code Review server
commit 879bea3b41

View file

@ -191,7 +191,7 @@ static __u32 get_fatent_value(fsdata *mydata, __u32 entry)
/* Write back the fatbuf to the disk */
if (mydata->fatbufnum != -1) {
if (flush_fat_buffer(mydata) < 0)
return -1;
return ret;
}
if (disk_read(startblock, getsize, bufptr) < 0) {