Skip to content

Commit 0213d4d

Browse files
authored
[mistos][pr] Fix fat open_file (#4)
2 parents 4c8730a + 217484e commit 0213d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fs/fat/file.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bool fat_file::dec_ref() {
5353
}
5454

5555
status_t fat_file::open_file_priv(const dir_entry &entry, const dir_entry_location &loc) {
56-
Guard<Mutex> guard{&fs_->lock};
56+
DEBUG_ASSERT(fs_->lock.lock().IsHeld());
5757

5858
LTRACEF("found file at location %u:%u\n", loc.starting_dir_cluster, loc.dir_offset);
5959

0 commit comments

Comments
 (0)