Skip to content

Commit f2a88f6

Browse files
committed
rust: drm/gpuvm: Take &GpuVmBo<T> for map_and_link_va()
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 388bfc1 commit f2a88f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/drm/gpuvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<T: DriverGpuVm> OpMap<T> {
9898
&mut self,
9999
gpuvm: &mut UpdatingGpuVm<'_, T>,
100100
gpuva: Pin<KBox<GpuVa<T>>>,
101-
gpuvmbo: &ARef<GpuVmBo<T>>,
101+
gpuvmbo: &GpuVmBo<T>,
102102
) -> Result<(), Pin<KBox<GpuVa<T>>>> {
103103
// SAFETY: We are handing off the GpuVa ownership and it will not be moved.
104104
let p = KBox::leak(unsafe { Pin::into_inner_unchecked(gpuva) });

0 commit comments

Comments
 (0)