commit | c07ecc6866f8c5eb2e0b23ba20214000310355e0 | [log] [tgz] |
---|---|---|
author | Laurent Vivier <laurent@vivier.eu> | Mon Jan 07 11:40:06 2013 +0000 |
committer | Laurent Vivier <laurent@vivier.eu> | Wed Jan 30 12:13:21 2013 +0100 |
tree | a6e190166c8ca567c9c0dd8e34bd321de77f4c7c | |
parent | 1b09aeb90827c1d91383a9eae42ce8f25909857b [diff] |
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>