Fix failure patch in mark_pages_for_pageset2.
commit94c166a67096cdc84bf98599682054a9176695f5
authorNigel Cunningham <nigel@suspend2.net>
Fri, 11 May 2007 05:47:53 +0000 (11 15:47 +1000)
committerNigel Cunningham <nigel@suspend2.net>
Fri, 11 May 2007 05:48:48 +0000 (11 15:48 +1000)
tree14847722d54c528d94d7559a9f80d9fc1a627992
parent7006a5e27b8518b757d2194f83b1c37d2e94aa24
Fix failure patch in mark_pages_for_pageset2.

The failure path for allocating struct attention_list items was wrong. We
want to not go ahead with marking the tasks as pageset1, and just skip
through to freeing any memory that had been allocated. Without this change,
we'll oops in the next step (recording the tasks that need attention),
because we just assume there that there are enough structs allocated.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/pagedir.c