lkml.org 
[lkml]   [2003]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectPATCH 2.4.21 fix: kswapd can fail starting
Date
From
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/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.038 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site