Skip to content

Commit a86fc44

Browse files
committed
Add missing write lock call.
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
1 parent 2640b13 commit a86fc44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/intel_freebsd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ int remap_io_mapping(struct vm_area_struct *vma,
247247
if (vm_page_insert(m, vm_obj, pidx)) {
248248
VM_OBJECT_WUNLOCK(vm_obj);
249249
VM_WAIT;
250+
VM_OBJECT_WLOCK(vm_obj);
250251
goto retry;
251252
}
252253
m->valid = VM_PAGE_BITS_ALL;

0 commit comments

Comments
 (0)