Sorry, some parentheses around my SWP_WRITEOK check would help.

Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>

 kernel/power/swsusp.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- swap13/kernel/power/swsusp.c        2005-07-08 19:15:59.000000000 +0100
+++ swap14/kernel/power/swsusp.c        2005-07-09 12:04:19.000000000 +0100
@@ -180,7 +180,7 @@ static int swsusp_swap_check(void) /* Th
 
        spin_lock(&swap_lock);
        for (i=0; i<MAX_SWAPFILES; i++) {
-               if (!swap_info[i].flags & SWP_WRITEOK) {
+               if (!(swap_info[i].flags & SWP_WRITEOK)) {
                        swapfile_used[i]=SWAPFILE_UNUSED;
                } else {
                        if (!len) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to