]> Git Repo - linux.git/commit
drm/i915: Limit the scattergather coalescing to 32bits
authorChris Wilson <[email protected]>
Tue, 18 Oct 2016 12:02:50 +0000 (13:02 +0100)
committerChris Wilson <[email protected]>
Tue, 18 Oct 2016 13:22:27 +0000 (14:22 +0100)
commit4ff340f0617d02ab67a087977883ef8eff36bd68
tree0db61afda4a8b5a7401acc70d5edb81a114d4aa4
parentb4bcbe2a90a1127a6dad72fbda27e77705d9e0f4
drm/i915: Limit the scattergather coalescing to 32bits

The scattergather list uses a 32bit size counter, we should avoid
exceeding it.

v2: Also we should use unsigned int to match sg->length.

Fixes: 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size")
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem.c
This page took 0.081275 seconds and 4 git commands to generate.