Power management fix for 6.6-rc5
Fix a recently introduced hibernation crash (Pavankumar Kondeti). -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEE4fcc61cGeeHD/fCwgsRv/nhiVHEFAmUgP/YSHHJqd0Byand5 c29ja2kubmV0AAoJEILEb/54YlRxW5MP/3NO5IbVAK8w8WmqcxEjIIRHBsiVqRHG VwqEC8Ic/pKdNBzf8bpn4ljpnbv0az6jRkTCXe9e5gnXWrx1OZFVYQtyWEWWV48U B1L1yUIIYv3wyTR/fceJTKUHynhokCl/7t1ETfWx7dapn6VLPZB1pfGkasRrR48/ DdzNNbBj5im+rkMPopMSmW+4URj6YZR2sH80LNgc/K0EbK88l8eq+oKQU09jzsup A6//julqrXrUQEK4PlkLDjIvIzwLxc1KPpxSc3NMRYiEw8fzoyT8cpuSTBTNpK4z dLg+wkBTN2SqOTNsO3Otr1q+Yd1O42FKRx9RTVPb2Babnxlq9c/q8CIwn+FPX0Ag aT5i1aiMzAH3srqsy0Kt2YVP3ltIi9lbCXXmsAlwaocwM7Z+d+0Er7hdtO478ETy 9JmTdiMRW/qit9puMK5FjOJ2Q6aLMKwuc8rS0sX9YFZ5Qsr+vRo8v1VirE2dvCn3 m4EdFh8aGbCu/3czTmWQG/HBjVKtDyZkSLmH88GlWG8t0coc8hD50w8Ez7xUtBwv Yd3lbG72h/o1wlqHXXkiJcCDir/JFzKrcactz/KXalxxV5iAOFgTTKTV8UYBT+Wb Keggudvp+/8nIBKe4sKdrkp9uefrthqfFPg8n+fjCFgQtj5XBVLPgt+HzGxE3R8J XsIy4O/ZmplY =isoY -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
82714078ae
@ -2647,7 +2647,7 @@ static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm,
|
||||
memory_bm_free(bm, PG_UNSAFE_KEEP);
|
||||
|
||||
/* Make a copy of zero_bm so it can be created in safe pages */
|
||||
error = memory_bm_create(&tmp, GFP_ATOMIC, PG_ANY);
|
||||
error = memory_bm_create(&tmp, GFP_ATOMIC, PG_SAFE);
|
||||
if (error)
|
||||
goto Free;
|
||||
|
||||
@ -2660,7 +2660,7 @@ static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm,
|
||||
goto Free;
|
||||
|
||||
duplicate_memory_bitmap(zero_bm, &tmp);
|
||||
memory_bm_free(&tmp, PG_UNSAFE_KEEP);
|
||||
memory_bm_free(&tmp, PG_UNSAFE_CLEAR);
|
||||
/* At this point zero_bm is in safe pages and it can be used for restoring. */
|
||||
|
||||
if (nr_highmem > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user