On 16.01.2024 20:25, Elias El Yandouzi wrote: > From: Julien Grall <[email protected]> > > The function map_pages_to_xen() could fail if it can't allocate the > underlying page tables or (at least on Arm) if the area was already > mapped. > > The first error is caught by clear_page() because it would fault. > However, the second error while very unlikely is not caught at all. > > As this is boot code, use BUG_ON() to check if map_pages_to_xen() has > succeeded. > > Signed-off-by: Julien Grall <[email protected]> > Signed-off-by: Elias El Yandouzi <[email protected]>
Acked-by: Jan Beulich <[email protected]>
