Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Convert capable...
details: https://anonhg.NetBSD.org/src/rev/9f3e65b4bbd6
branches: riastradh-drm2
changeset: 788293:9f3e65b4bbd6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:06:33 2013 +0000
description:
Convert capable(CAP_SYS_ADMIN) to DRM_SUSER() in i915_getparam.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_dma.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 40b25bbf2c62 -r 9f3e65b4bbd6 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 03:06:16 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 03:06:33 2013 +0000
@@ -1023,7 +1023,11 @@
value = 1;
break;
case I915_PARAM_HAS_SECURE_BATCHES:
+#ifdef __NetBSD__
+ value = DRM_SUSER();
+#else
value = capable(CAP_SYS_ADMIN);
+#endif
break;
case I915_PARAM_HAS_PINNED_BATCHES:
value = 1;
Home |
Main Index |
Thread Index |
Old Index