From: Thomas Hellstrom Date: Tue, 17 Apr 2007 06:46:45 +0000 (+0200) Subject: Add a code comment. X-Git-Tag: android-x86-1.6~623 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e91ceff6c98661bfae5db008e024b71a8a0f5129;p=android-x86%2Fexternal-libdrm.git Add a code comment. --- 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 =