Messages in this thread Patch in this message | | | Date | Sat, 9 Jul 2005 12:13:28 +0100 (BST) | From | Hugh Dickins <> | Subject | [PATCH 14/13] swsusp mod needed parentheses |
| |
Sorry, some parentheses around my SWP_WRITEOK check would help.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |