]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Hibernation: do not try to mark invalid PFNs as nosave
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 15 Aug 2007 13:37:37 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Aug 2007 23:23:26 +0000 (16:23 -0700)
commit91f9aa522baa31a5af4909667487ba163e849c3d
treed2e6c824b44005c934eaea1a013f41dbbb90f687
parent3443d563dc53875b15d919c4bece391f1ffd4776
Hibernation: do not try to mark invalid PFNs as nosave

On some systems some PFNs reported by the early initialization code as 'nosave'
may be invalid. =A0If we try to set the corresponding bits in the hibernation
bitmap, BUG_ON() in memory_bm_find_bit() will be triggered and the system
won't be able to boot (cf. https://bugzilla.novell.com/show_bug.cgi?id=296242).

Prevent this from happening by verifying if the 'nosave' PFNs are valid in
mark_nosave_pages().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/power/snapshot.c