swsusp: fix error handling in "not enough swap space"
Subsystems (2)
Hi!
Without this, if there's not enough swapspace, suspend fails, but leaves devices suspended, leading to dead machine. Please apply,
Pavel
kernel/power/swsusp.c renamed from linux/kernel/power/swsusp.c +4 -0
@@ -683,7 +683,11 @@free_pages ((unsigned long ) pagedir_nosave, pagedir_order);spin_unlock_irq (&suspend_pagedir_lock); + +device_resume (); +PRINTK ("Fixing swap signatures... " );mark_swapfiles (((swp_entry_t ) {0 }),MARK_SWAP_RESUME ); +PRINTK ("ok\n" ); }/*
Signature · 2 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]