mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8451 from korjaa/fix_possible_filebase_deadlock
Added missing _mutex->unlock() to FileBase::lookup().pull/8288/head
commit
1a6d2f6513
|
@ -88,6 +88,7 @@ FileBase *FileBase::lookup(const char *name, unsigned int len)
|
|||
p = p->_next;
|
||||
}
|
||||
if (len == (sizeof "default") - 1 && std::memcmp("default", name, len) == 0) {
|
||||
_mutex->unlock();
|
||||
return _default;
|
||||
}
|
||||
_mutex->unlock();
|
||||
|
|
Loading…
Reference in New Issue