From 76c40c69868a681bec1417cc327f72127f2f0f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Sat, 23 Mar 2013 20:43:26 +0000 Subject: [PATCH] drm/ttm: Explain why we don't need to acquire a ref in ttm_bo_vm_ctor() --- sys/dev/drm2/ttm/ttm_bo_vm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/drm2/ttm/ttm_bo_vm.c b/sys/dev/drm2/ttm/ttm_bo_vm.c index 1c86d957fb07..5d0e8aaad885 100644 --- a/sys/dev/drm2/ttm/ttm_bo_vm.c +++ b/sys/dev/drm2/ttm/ttm_bo_vm.c @@ -252,6 +252,11 @@ ttm_bo_vm_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) { + /* + * We don't acquire a reference on bo->kref here, because it was + * already done in ttm_bo_mmap_single(). + */ + *color = 0; return (0); }