[LOCKD] Fix double module_put
diff mbox series

Message ID 20031117094026.GA12562@gondor.apana.org.au
State New, archived
Headers show
Series
  • [LOCKD] Fix double module_put
Related show

Commit Message

Herbert Xu Nov. 17, 2003, 9:40 a.m. UTC
Hi:

This patch fixes a double module_put in lockd.

Cheers,

Patch
diff mbox series

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);
 	}
 }