OSDN Git Service

file-posix: Unlock FD after creation
authorMax Reitz <mreitz@redhat.com>
Wed, 4 Jul 2018 14:47:51 +0000 (16:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Jul 2018 09:07:58 +0000 (11:07 +0200)
commit7c20c808a5cbf5d244735bc78fc3138c739c1946
tree1513d917b547e0337f2cbcabda5ab335fd53625e
parentd815efcaf01b1698e2fdf0f3e125201025c53191
file-posix: Unlock FD after creation

Closing the FD does not necessarily mean that it is unlocked.  Fix this
by relinquishing all permission locks before qemu_close().

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c