[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] migration: mmap error check fix
From: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] migration: mmap error check fix |
Date: |
Fri, 29 Jul 2016 16:12:12 +0530 |
On (Fri) 29 Jul 2016 [12:48:25], Denis V. Lunev wrote:
> From: Evgeny Yakovlev <address@hidden>
>
> 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 <address@hidden>
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Juan Quintela <address@hidden>
> CC: Amit Shah <address@hidden>
Reviewed-by: Amit Shah <address@hidden>
Amit