drm/i915: Remove misleading comment in request_alloc
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 23 May 2017 10:23:58 +0000 (12:23 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 May 2017 10:53:22 +0000 (11:53 +0100)
commit1d5fd00313c49f7972e3356ac58e0ad7934e1948
tree9c6243a053cc3957baec13afac01852c3eb7145a
parent48f1fc3a301d50c27c07a0fe73cd3a75d4f59552
drm/i915: Remove misleading comment in request_alloc

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 <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170523102400.9614-1-michal.winiarski@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_request.c