Messages in this thread Patch in this message | | | Date | Mon, 17 Nov 2003 20:40:26 +1100 | Subject | [LOCKD] Fix double module_put | From | Herbert 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.txt Index: 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); } } | |