Skip to content

Commit 217484e

Browse files
committedMar 10, 2025
[mistos][lk][fat] Fix assert lock is held
Change-Id: Id00401e9770180bf241d6092cab65f8653b78f76
1 parent 4c8730a commit 217484e

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)
Please sign in to comment.