]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: hibernate: Use __get_safe_page() rather than touching the list
authorBrian Geffon <bgeffon@google.com>
Thu, 21 Sep 2023 17:00:45 +0000 (13:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:05 +0000 (17:15 +0000)
commit54a964575b7afc94a6558ac014421a5e0b18b58c
tree7e3b21c863474a0a080ba7a77fd9b2fb28f4c242
parent3480c1cd3bcf9e961644d7910cdd5a95ecd98888
PM: hibernate: Use __get_safe_page() rather than touching the list

commit f0c7183008b41e92fa676406d87f18773724b48b upstream.

We found at least one situation where the safe pages list was empty and
get_buffer() would gladly try to use a NULL pointer.

Signed-off-by: Brian Geffon <bgeffon@google.com>
Fixes: 8357376d3df2 ("[PATCH] swsusp: Improve handling of highmem")
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/snapshot.c