aboutsummaryrefslogtreecommitdiff
path: root/tests/test-io-channel-file.c
diff options
context:
space:
mode:
authorEvgeny Yakovlev <eyakovlev@virtuozzo.com>2016-07-29 12:48:25 +0300
committerAmit Shah <amit.shah@redhat.com>2016-08-11 16:59:38 +0530
commit0e8b3cdfbc167f4bb7790ef744eaa1ac0e6959f9 (patch)
treeb6b358436127ea57c3e02e71ecaad48011df88cb /tests/test-io-channel-file.c
parente110aa919a84e6454017b60b222344f3ac6038b5 (diff)
migration: mmap error check fix
mmap man page: "On success, mmap() returns a pointer to the mapped area. On error, the value MAP_FAILED (that is, (void *) -1) is returned, and errno is set to indicate the cause of the error." The check in postcopy_get_tmp_page is definitely wrong and should be fixed. Signed-off-by: Evgeny Yakovlev <eyakovlev@virtuozzo.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> CC: Juan Quintela <quintela@redhat.com> CC: Amit Shah <amit.shah@redhat.com> Message-Id: <1469785705-16670-1-git-send-email-den@openvz.org> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'tests/test-io-channel-file.c')
0 files changed, 0 insertions, 0 deletions