Skip to content

Commit b1de365

Browse files
committed
Revert "rust: drm: gpuvm: Add a missing lock"
This reverts commit 0475333. due to NULL ptr deref, see #433 Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 05cc213 commit b1de365

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rust/kernel/drm/gpuvm.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,7 @@ unsafe impl<T: DriverGpuVm> AlwaysRefCounted for GpuVmBo<T> {
337337
unsafe {
338338
let resv = (*obj.as_mut().bo.obj).resv;
339339
bindings::dma_resv_lock(resv, core::ptr::null_mut());
340-
obj.as_ref().lock_gpuva();
341340
bindings::drm_gpuvm_bo_put(&mut obj.as_mut().bo);
342-
obj.as_ref().unlock_gpuva();
343341
bindings::dma_resv_unlock(resv);
344342
}
345343
}

0 commit comments

Comments
 (0)