Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2013 19:42:00 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251505 - head/sys/fs/tmpfs
Message-ID:  <201306071942.r57Jg0g5033724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Fri Jun  7 19:42:00 2013
New Revision: 251505
URL: http://svnweb.freebsd.org/changeset/base/251505

Log:
  Add missing VM object unlocks in an error case.
  
  Reviewed by:	kib

Modified:
  head/sys/fs/tmpfs/tmpfs_vnops.c

Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c	Fri Jun  7 19:02:32 2013	(r251504)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c	Fri Jun  7 19:42:00 2013	(r251505)
@@ -470,6 +470,7 @@ tmpfs_nocacheread(vm_object_t tobj, vm_p
 				printf(
 		    "tmpfs: vm_obj %p idx %jd null lookup rv %d\n",
 				    tobj, idx, rv);
+				VM_OBJECT_WUNLOCK(tobj);
 				return (EIO);
 			}
 			if (rv != VM_PAGER_OK) {
@@ -586,6 +587,7 @@ tmpfs_mappedwrite(vm_object_t tobj, size
 				printf(
 		    "tmpfs: vm_obj %p idx %jd null lookup rv %d\n",
 				    tobj, idx, rv);
+				VM_OBJECT_WUNLOCK(tobj);
 				return (EIO);
 			}
 			if (rv != VM_PAGER_OK) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306071942.r57Jg0g5033724>