OSDN Git Service

Add a code comment.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 17 Apr 2007 06:46:45 +0000 (08:46 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 17 Apr 2007 06:46:45 +0000 (08:46 +0200)
linux-core/drm_bo.c

index b08700a..4ecfb79 100644 (file)
@@ -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 =