Check return value of ffm_write_write_index and ffm_read_write_index.