summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall_defs.h
diff options
context:
space:
mode:
authorPeter Maydell2016-05-20 20:00:57 +0200
committerRiku Voipio2016-05-27 13:50:39 +0200
commit415d847110e3f8cd176160b92a5fdc56d8a20792 (patch)
tree863bda57c9db1d342ff1812e348464549e3e76bf /linux-user/syscall_defs.h
parentlinux-user: Handle msgrcv error case correctly (diff)
downloadqemu-415d847110e3f8cd176160b92a5fdc56d8a20792.tar.gz
qemu-415d847110e3f8cd176160b92a5fdc56d8a20792.tar.xz
qemu-415d847110e3f8cd176160b92a5fdc56d8a20792.zip
linux-user: Use g_try_malloc() in do_msgrcv()
In do_msgrcv() we want to allocate a message buffer, whose size is passed to us by the guest. That means we could legitimately fail, so use g_try_malloc() and handle the error case, in the same way that do_msgsnd() does. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall_defs.h')
0 files changed, 0 insertions, 0 deletions