]> git.proxmox.com Git - qemu.git/commit
linux-user: correct reboot()
authorLaurent Vivier <laurent@vivier.eu>
Mon, 7 Jan 2013 11:40:06 +0000 (11:40 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 30 Jan 2013 11:13:21 +0000 (12:13 +0100)
commitc07ecc6866f8c5eb2e0b23ba20214000310355e0
treea6e190166c8ca567c9c0dd8e34bd321de77f4c7c
parent1b09aeb90827c1d91383a9eae42ce8f25909857b
linux-user: correct reboot()

According to man reboot(2), the 4th argument is only used with
LINUX_REBOOT_CMD_RESTART2. In other cases, trying to convert
the value can generate EFAULT.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c