Re: [Qemu-devel] [PATCH 1/1] migration: mmap error check fix

2016-07-29 Thread Dr. David Alan Gilbert
* Denis V. Lunev (d...@openvz.org) wrote: > From: Evgeny Yakovlev > > 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 postcop

Re: [Qemu-devel] [PATCH 1/1] migration: mmap error check fix

2016-07-29 Thread Amit Shah
On (Fri) 29 Jul 2016 [12:48:25], Denis V. Lunev wrote: > From: Evgeny Yakovlev > > 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 che

[Qemu-devel] [PATCH 1/1] migration: mmap error check fix

2016-07-29 Thread Denis V. Lunev
From: Evgeny Yakovlev 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. S