diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-04-14 14:11:56 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2011-04-14 17:31:47 +0200 |
commit | 420b6c317de87890e06225de6e2f8af7bf714df0 (patch) | |
tree | 3cbbae13610ae4451a7020ebe945affd6b51d839 /qemu-timer.h | |
parent | 4d9ad7f793605abd9806fc932b3e04e028894565 (diff) |
tests/test-mmap.c: Check mmap() return value before using it
Correct the position of a "stop if MAP_FAILED" check in the mmap()
tests, so that if mmap() does fail we print a failure message
rather than segfaulting inside memcpy().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'qemu-timer.h')
0 files changed, 0 insertions, 0 deletions