Commit f0c7183
PM: hibernate: Use __get_safe_page() rather than touching the list
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: 8357376 ("[PATCH] swsusp: Improve handling of highmem")
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent ce9ecca commit f0c7183
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2545 | 2545 | | |
2546 | 2546 | | |
2547 | 2547 | | |
2548 | | - | |
2549 | | - | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
2550 | 2551 | | |
2551 | 2552 | | |
2552 | 2553 | | |
| |||
2750 | 2751 | | |
2751 | 2752 | | |
2752 | 2753 | | |
2753 | | - | |
2754 | | - | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
2755 | 2757 | | |
2756 | 2758 | | |
2757 | 2759 | | |
| |||
0 commit comments