Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177675089
D59877.1795005254.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
600 B
Referenced Files
None
Subscribers
None
D59877.1795005254.diff
View Options
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -723,12 +723,7 @@
shm_partial_page_invalidate(vm_object_t object, vm_pindex_t idx, int base,
int end)
{
- int error;
-
- error = vm_page_grab_zero_partial(object, idx, base, end);
- if (error == EIO)
- VM_OBJECT_WUNLOCK(object);
- return (error);
+ return (vm_page_grab_zero_partial(object, idx, base, end));
}
static int
@@ -2093,7 +2088,7 @@
}
out:
- VM_OBJECT_WUNLOCK(shmfd->shm_object);
+ VM_OBJECT_WUNLOCK(object);
*offset = off;
*length = len;
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 12:34 PM (7 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39424447
Default Alt Text
D59877.1795005254.diff (600 B)
Attached To
Mode
D59877: posixshm: Fix a double unlock in shm_partial_page_invalidate()
Attached
Detach File
Event Timeline