Messages in this thread Patch in this message | | | Subject | PATCH 2.4.21 fix: kswapd can fail starting | Date | Fri, 27 Jun 2003 22:24:18 +0200 (MEST) | From | "Walter Harms" <> |
| |
Hi list, when i was looking for non checked returns of kernel_thread() i noticed that vmscan.c never checks. This patch changes that. Note that kswapd_init() can fail. I have no idea what to do then perhaps somebody should take a look at that also ?
walter
--- mm/vmscan.c.org 2003-06-25 21:49:45.000000000 +0200 +++ mm/vmscan.c 2003-06-25 21:45:39.000000000 +0200 @@ -768,7 +768,8 @@ { printk("Starting kswapd\n"); swap_setup(); - kernel_thread(kswapd, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL); + if (kernel_thread(kswapd, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL)<0) + return 1; return 0; }
-- - 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/
| |