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) { _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"