David Hildenbrand <[email protected]> wrote: > If something goes wrong during uffd_change_protection(), we would miss > to unregister uffd-wp and not release our reference. Fix it by > performing the uffd_change_protection(true) last. > > Note that a uffd_change_protection(false) on the recovery path without a > prior uffd_change_protection(false) is fine. > > Fixes: 278e2f551a09 ("migration: support UFFD write fault processing in > ram_save_iterate()") > Cc: [email protected] > Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
