projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge drm/drm-next into drm-intel-next-queued
[linux-2.6-block.git]
/
drivers
/
gpu
/
drm
/
i915
/
i915_query.c
diff --git
a/drivers/gpu/drm/i915/i915_query.c
b/drivers/gpu/drm/i915/i915_query.c
index 95a343934cbd7a6d152d71a1e60f7fd523e0c70a..cbcb957b7141d768541853129cdc029d5f804029 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_query.c
+++ b/
drivers/gpu/drm/i915/i915_query.c
@@
-46,7
+46,7
@@
static int query_topology_info(struct drm_i915_private *dev_priv,
if (topo.flags != 0)
return -EINVAL;
- if (!access_ok(
VERIFY_WRITE,
u64_to_user_ptr(query_item->data_ptr),
+ if (!access_ok(u64_to_user_ptr(query_item->data_ptr),
total_length))
return -EFAULT;