lkml.org 
[lkml]   [2003]   [Nov]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 17 Nov 2003 20:40:26 +1100
Subject[LOCKD] Fix double module_put
FromHerbert Xu <>
Hi:

This patch fixes a double module_put in lockd.

Cheers,
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtIndex: kernel-source-2.5/fs/lockd/clntlock.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/fs/lockd/clntlock.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 clntlock.c
--- kernel-source-2.5/fs/lockd/clntlock.c	27 Jul 2003 17:09:35 -0000	1.1.1.3
+++ kernel-source-2.5/fs/lockd/clntlock.c	17 Nov 2003 09:37:40 -0000
@@ -188,7 +188,7 @@
 		nlmclnt_prepare_reclaim(host, newstate);
 		nlm_get_host(host);
 		__module_get(THIS_MODULE);
-		if (kernel_thread(reclaimer, host, CLONE_KERNEL))
+		if (kernel_thread(reclaimer, host, CLONE_KERNEL) < 0)
 			module_put(THIS_MODULE);
 	}
 }
\
 
 \ /
  Last update: 2005-03-22 12:58    [from the cache]
©2003-2008