]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: Check lock_user() return value for NULL
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Jul 2016 12:02:13 +0000 (13:02 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 21 Sep 2016 11:26:46 +0000 (14:26 +0300)
commit3211215e741f6e4824ddfc4919428e8d1b82a3c2
tree9bb45e35c26d562237e8d4f40f485e10756f51a6
parent68754b442b756e8cb5f143b00937fb7330a51a81
linux-user: Check lock_user() return value for NULL

lock_user() can return NULL, which typically means the syscall
should fail with EFAULT. Add checks in various places where
Coverity spotted that we were missing them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c