svn commit: r193931 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Jun 10 16:17:39 UTC 2009


Author: kib
Date: Wed Jun 10 16:17:38 2009
New Revision: 193931
URL: http://svn.freebsd.org/changeset/base/193931

Log:
  Do not leak the state->ls_lock after VI_DOOMED check introduced
  in the r192683.
  
  Reported by:	pho
  Submitted by:	jhb

Modified:
  head/sys/kern/kern_lockf.c

Modified: head/sys/kern/kern_lockf.c
==============================================================================
--- head/sys/kern/kern_lockf.c	Wed Jun 10 15:48:34 2009	(r193930)
+++ head/sys/kern/kern_lockf.c	Wed Jun 10 16:17:38 2009	(r193931)
@@ -647,6 +647,7 @@ lf_advlockasync(struct vop_advlockasync_
 	VI_LOCK(vp);
 	if (vp->v_iflag & VI_DOOMED) {
 		VI_UNLOCK(vp);
+		sx_xunlock(&state->ls_lock);
 		lf_free_lock(lock);
 		return (ENOENT);
 	}


More information about the svn-src-all mailing list