PM: hibernate: flush swap writer after marking
authorLaurent Badel <laurentbadel@eaton.com>
Fri, 22 Jan 2021 16:19:41 +0000 (17:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:25:57 +0000 (23:25 +0100)
commit53fd4e4003a664c426dd54e19f262cb97e9eb6f9
treed78a91520ccdf965de0e3b19d77fee4008e78692
parent7f9a267c67af9f8bbcc612ef609dfa29ffb8a042
PM: hibernate: flush swap writer after marking

commit fef9c8d28e28a808274a18fbd8cc2685817fd62a upstream.

Flush the swap writer after, not before, marking the files, to ensure the
signature is properly written.

Fixes: 6f612af57821 ("PM / Hibernate: Group swap ops")
Signed-off-by: Laurent Badel <laurentbadel@eaton.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/swap.c