Commit f2024817 authored by Luke Shumaker's avatar Luke Shumaker Committed by Laurent Vivier
Browse files

linux-user: init_guest_space: Clean up if we can't initialize the commpage



We'll just exit with an error anyway, so it doesn't really matter, but it
is cleaned up in all of the other places were we error out.

Signed-off-by: default avatarLuke Shumaker <lukeshu@parabola.nu>
Message-Id: <20171228180814.9749-4-lukeshu@lukeshu.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent c3637eaf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1860,6 +1860,7 @@ unsigned long init_guest_space(unsigned long host_start,
            if (valid == 1) {
                break;
            } else if (valid == -1) {
                munmap((void *)real_start, host_size);
                return (unsigned long)-1;
            }
            /* valid == 0, so try again. */