From: Jan Beulich Date: Fri, 18 Feb 2022 13:44:32 +0000 (+0100) Subject: video/vesa: unmap frame buffer when relinquishing console X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~1011 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f627a39c5e7539502624648aeb69e9ff0de2b8e5;p=xen.git video/vesa: unmap frame buffer when relinquishing console There's no point in keeping the VA space occupied when no further output will occur. Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Acked-by: Andrew Cooper --- diff --git a/xen/drivers/video/lfb.c b/xen/drivers/video/lfb.c index 75b749b330..9254b5e902 100644 --- a/xen/drivers/video/lfb.c +++ b/xen/drivers/video/lfb.c @@ -168,4 +168,5 @@ void lfb_free(void) xfree(lfb.lbuf); xfree(lfb.text_buf); xfree(lfb.line_len); + lfb.lfbp.lfb = ZERO_BLOCK_PTR; } diff --git a/xen/drivers/video/vesa.c b/xen/drivers/video/vesa.c index f9169f701f..b9bdfc1670 100644 --- a/xen/drivers/video/vesa.c +++ b/xen/drivers/video/vesa.c @@ -197,5 +197,7 @@ void __init vesa_endboot(bool_t keep) vlfb_info.width * bpp); lfb_flush(); lfb_free(); + iounmap(lfb); + lfb = ZERO_BLOCK_PTR; } }