summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-17 08:46:45 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-17 08:46:45 +0200
commite91ceff6c98661bfae5db008e024b71a8a0f5129 (patch)
tree9acf59b93632eff663aa588dc9f22be269acc0c6 /linux-core
parente6e4946c82ab6f63143df7f49f38fa56f7e8980a (diff)
Add a code comment.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index b08700a3..4ecfb79c 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -1715,6 +1715,13 @@ int drm_bo_ioctl(DRM_IOCTL_ARGS)
drm_buffer_type, &uo);
if (rep.ret)
break;
+
+ /*
+ * Note: The following code is only to
+ * fill in the rep argument. drm_lookup_user_object ups the
+ * refcount which is decreased again when we're done with the bo.
+ */
+
mutex_lock(&dev->struct_mutex);
uo = drm_lookup_user_object(priv, req->handle);
entry =