History

Merge tag 'pm-6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fix from Rafael Wysocki: "Fix a recently introduced hibernation crash (Pavankumar Kondeti)" * tag 'pm-6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM: hibernate: Fix copying the zero bitmap to safe pages

Linus Torvalds committed 3 years ago

Commit 82714072 parents fc5b94f b21f18e1 file · +2 −2Browse files

Unified · Split

kernel/power/snapshot.c+2−2
@@ -2647,7 +2647,7 @@ static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm, · 2646 unmodified lines
26472647 memory_bm_free(bm, PG_UNSAFE_KEEP);
26482648
26492649 /* Make a copy of zero_bm so it can be created in safe pages */
2650− error = memory_bm_create(&tmp, GFP_ATOMIC, PG_ANY);
2650+ error = memory_bm_create(&tmp, GFP_ATOMIC, PG_SAFE);
26512651 if (error)
26522652 goto Free;
26532653
@@ -2660,7 +2660,7 @@ static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm, · 6 unmodified lines
26602660 goto Free;
26612661
26622662 duplicate_memory_bitmap(zero_bm, &tmp);
2663− memory_bm_free(&tmp, PG_UNSAFE_KEEP);
2663+ memory_bm_free(&tmp, PG_UNSAFE_CLEAR);
26642664 /* At this point zero_bm is in safe pages and it can be used for restoring. */
26652665
26662666 if (nr_highmem > 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t