Unverified Commit 9c9a0fea authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #82 from djdv/patch-1

Fix incorrect mutex unlock call in File.Open
parents 0ca27db0 6163f562
......@@ -64,7 +64,7 @@ func (fi *File) Open(flags Flags) (_ FileDescriptor, _retErr error) {
fi.desclock.RLock()
defer func() {
if _retErr != nil {
fi.desclock.Unlock()
fi.desclock.RUnlock()
}
}()
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment