--- 25-power4-akpm/mm/swapfile.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN mm/swapfile.c~a mm/swapfile.c --- 25-power4/mm/swapfile.c~a 2004-03-24 22:50:45.486086520 -0800 +++ 25-power4-akpm/mm/swapfile.c 2004-03-24 22:50:53.383885872 -0800 @@ -1302,7 +1302,7 @@ asmlinkage long sys_swapon(const char __ if (!(p->flags & SWP_USED)) break; error = -EPERM; - if (type > swp_type(pte_to_swp_entry(swp_entry_to_pte(swp_entry(~0UL,0))))) { + if (type > swp_type(pte_to_swp_entry(swp_entry_to_pte(swp_entry(-1,0))))) { swap_list_unlock(); goto out; } _