diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-11-05 13:20:16 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-11-05 13:20:16 +0100 |
commit | 44ad6f409d6d08163d26e20d41b1601b2fde53d7 (patch) | |
tree | 718118804a1bf3f38386cc18f508694bc78ccc51 /linux-core | |
parent | 82ffcbbd628fc8c07d3becbbcb86a54214e78110 (diff) |
Fix a user-buffer check.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c index 91bc0c79..6bfc6df5 100644 --- a/linux-core/drm_bo.c +++ b/linux-core/drm_bo.c @@ -945,7 +945,7 @@ static int drm_bo_new_mask(struct drm_buffer_object *bo, uint32_t new_props; if (bo->type == drm_bo_type_user && - ((used_mask & (DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING)) != + ((new_flags & (DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING)) != (DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING))) { DRM_ERROR("User buffers require cache-coherent memory.\n"); return -EINVAL; |