Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150121373
D3745.id9032.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
926 B
Referenced Files
None
Subscribers
None
D3745.id9032.diff
View Options
Index: head/sys/dev/drm2/i915/i915_gem_execbuffer.c
===================================================================
--- head/sys/dev/drm2/i915/i915_gem_execbuffer.c
+++ head/sys/dev/drm2/i915/i915_gem_execbuffer.c
@@ -1151,7 +1151,8 @@
if (ctx_id != 0) {
DRM_DEBUG("Ring %s doesn't support contexts\n",
ring->name);
- return -EPERM;
+ ret = -EPERM;
+ goto pre_struct_lock_err;
}
break;
case I915_EXEC_BLT:
@@ -1159,7 +1160,8 @@
if (ctx_id != 0) {
DRM_DEBUG("Ring %s doesn't support contexts\n",
ring->name);
- return -EPERM;
+ ret = -EPERM;
+ goto pre_struct_lock_err;
}
break;
default:
@@ -1171,7 +1173,8 @@
if (!intel_ring_initialized(ring)) {
DRM_DEBUG("execbuf with invalid ring: %d\n",
(int)(args->flags & I915_EXEC_RING_MASK));
- return -EINVAL;
+ ret = -EINVAL;
+ goto pre_struct_lock_err;
}
mode = args->flags & I915_EXEC_CONSTANTS_MASK;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 1:44 PM (15 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30588542
Default Alt Text
D3745.id9032.diff (926 B)
Attached To
Mode
D3745: Don't leak resources in certain errors from i915_gem_do_execbuffer().
Attached
Detach File
Event Timeline
Log In to Comment