aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2011-09-14 14:14:28 +0200
committerKeith Packard <[email protected]>2011-10-20 14:11:19 -0700
commit8ffc02468145ac92b1b88896e0f18bd7bcd52591 (patch)
treeadb0d1d1343b8ca93dec9bf95a5263455371654a /tools/perf/scripts/python
parent6dacfd2faa398dc5206523ae6a2f8dd037488de8 (diff)
drm/i915: Defend against userspace creating a gem object with size==0
We currently only round up the userspace size to the next page. We assume that userspace hasn't made a mistake and requested a zero-length gem object and all through our internal code we then presume that every object is backed by at least a single page. Fix that oversight and report EINVAL back to userspace if they try to create a zero length object. [danvet: This fixes tests/gem_bad_length] Signed-off-by: Chris Wilson <[email protected]> Signed-Off-by: Daniel Vetter <[email protected]> Reviewed-by: Ben Widawsky <[email protected]> Signed-off-by: Keith Packard <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions