On 04/01/2021 09:03, Roger Pau Monne wrote: > One of the error paths in p2m_add_foreign could call put_page with a > NULL page, thus triggering a fault. > > Split the checks into two different if statements, so the appropriate > error path can be taken. > > Fixes: 173ae325026bd ('x86/p2m: tidy p2m_add_foreign() a little') > Signed-off-by: Roger Pau Monné <roger....@citrix.com>
Acked and committed. ~Andrew