Add missing VM object unlocks in an error case.

Reviewed by:	kib
This commit is contained in:
Alan Cox 2013-06-07 19:42:00 +00:00
parent c91950082d
commit f50b6721e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251505

View File

@ -470,6 +470,7 @@ tmpfs_nocacheread(vm_object_t tobj, vm_pindex_t idx,
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_t len, struct uio *uio)
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) {