From: "Randy.Dunlap" Date: Fri, 09 Jan 2004 00:34:11 +0000 Subject: Re: [Kernel-janitors] [PATCH] Check return code in mm/pdflush.c Message-Id: <20040108163411.7dfcbe36.rddunlap@osdl.org> List-Id: References: <20040103132524.GA21909@eugeneteo.net> In-Reply-To: <20040103132524.GA21909@eugeneteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On Sat, 3 Jan 2004 21:26:56 +0800 Eugene Teo wrote: | http://www.anomalistic.org/patches/pdflush-check-ret-kernel_thread-fix-2.6.1-rc1-mm1.patch | | diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-rc1-mm1/mm/pdflush.c 2.6.1-rc1-mm1-fix/mm/pdflush.c | --- 2.6.1-rc1-mm1/mm/pdflush.c 2004-01-03 17:58:11.000000000 +0800 | +++ 2.6.1-rc1-mm1-fix/mm/pdflush.c 2004-01-03 20:25:30.000000000 +0800 | @@ -223,7 +223,11 @@ | | static void start_one_pdflush_thread(void) | { | - kernel_thread(pdflush, NULL, CLONE_KERNEL); | + int ret; | + | + ret = kernel_thread(pdflush, NULL, CLONE_KERNEL); | + if (ret < 0) | + printk("%s: unable to start kernel thread\n", __FUNCTION__); This patch adds trailing whitespace (on the "if" line). Please be more careful about that -- we don't want that. I fixed this one. I run a simple script that searches for gotchas like this: grep -nH "^+.*[ ]$" $1 | more (that's SPACE and TAB inside the square brackets) -- ~Randy MOTD: Always include version info. _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors