projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f1fc3
)
drm/i915: Remove misleading comment in request_alloc
author
Michał Winiarski
<
[email protected]
>
Tue, 23 May 2017 10:23:58 +0000
(12:23 +0200)
committer
Chris Wilson
<
[email protected]
>
Tue, 23 May 2017 10:53:22 +0000
(11:53 +0100)
Passing NULL ctx to request_alloc would lead to null-ptr-deref.
v2: Let's not replace the comment with a BUG_ON
Signed-off-by: Michał Winiarski <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Signed-off-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/i915_gem_request.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_request.c
b/drivers/gpu/drm/i915/i915_gem_request.c
index 1ccf2522cdfd6d93f6ef23e61c6f913536052191..0d1e0d8873ef61f143609f8b19161cd921caa4d5 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_request.c
+++ b/
drivers/gpu/drm/i915/i915_gem_request.c
@@
-538,9
+538,6
@@
submit_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state)
*
* @engine: engine that we wish to issue the request on.
* @ctx: context that the request will be associated with.
- * This can be NULL if the request is not directly related to
- * any specific user context, in which case this function will
- * choose an appropriate context to use.
*
* Returns a pointer to the allocated request if successful,
* or an error code if not.