]> git.ipfire.org Git - thirdparty/qemu.git/commit - util/memfd.c
memfd: set up correct errno if not supported
authorIlya Maximets <i.maximets@samsung.com>
Mon, 11 Mar 2019 13:58:49 +0000 (16:58 +0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 11 Mar 2019 20:17:00 +0000 (17:17 -0300)
commitdf20819328d6fa3cb9d4a259a58cebbee35cdd09
tree0b6e78c35b97c50d7c2bc3cb752ed9601a968037
parent92db922f66cde45bb216c36eb43b762429c96a74
memfd: set up correct errno if not supported

qemu_memfd_create() prints the value of 'errno' which is not
set in this case.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190311135850.6537-4-i.maximets@samsung.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
util/memfd.c