]> Zhao Yanbai Git Server - minix.git/commit
VFS: fix locking bug in clone_opcl
authorThomas Veerman <thomas@minix3.org>
Thu, 26 Jul 2012 12:28:03 +0000 (12:28 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 30 Jul 2012 10:01:16 +0000 (10:01 +0000)
commit66dbf73049849f550288e82ffe192728df0b588c
tree46e31cf9c068bcb061db26ededee7a5aa8e9bfed
parentf6b0d662b576827ca02e5c3034127d0b369dbc19
VFS: fix locking bug in clone_opcl

When VFS runs out of vnodes after closing a vnode in opcl, common_open
will try to unlock a vnode through unlock_filp that has already been
unlocked in clone_opcl. By first obtaining and locking a new vnode this
situation is prevented; if there are no free vnodes, common_open will
unlock a still locked vnode.
servers/vfs/device.c