File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
drivers/gpu/drm/imagination Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ struct pvr_vm_gpuva {
114
114
struct drm_gpuva base ;
115
115
};
116
116
117
+ #define to_pvr_vm_gpuva (va ) container_of_const(va, struct pvr_vm_gpuva, base)
118
+
117
119
enum pvr_vm_bind_type {
118
120
PVR_VM_BIND_TYPE_MAP ,
119
121
PVR_VM_BIND_TYPE_UNMAP ,
@@ -386,6 +388,7 @@ pvr_vm_gpuva_unmap(struct drm_gpuva_op *op, void *op_ctx)
386
388
387
389
drm_gpuva_unmap (& op -> unmap );
388
390
drm_gpuva_unlink (op -> unmap .va );
391
+ kfree (to_pvr_vm_gpuva (op -> unmap .va ));
389
392
390
393
return 0 ;
391
394
}
@@ -433,6 +436,7 @@ pvr_vm_gpuva_remap(struct drm_gpuva_op *op, void *op_ctx)
433
436
}
434
437
435
438
drm_gpuva_unlink (op -> remap .unmap -> va );
439
+ kfree (to_pvr_vm_gpuva (op -> remap .unmap -> va ));
436
440
437
441
return 0 ;
438
442
}
You can’t perform that action at this time.
0 commit comments