mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-26 17:26:14 +00:00
igt/gem_exec_big: Don't try to repeatedly munmap(NULL)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3214a27b5b
commit
3ea7a28072
@ -193,7 +193,8 @@ igt_simple_main
|
|||||||
execN(fd, handle, batch_size, 0, ptr);
|
execN(fd, handle, batch_size, 0, ptr);
|
||||||
execN(fd, handle, batch_size, I915_EXEC_SECURE, ptr);
|
execN(fd, handle, batch_size, I915_EXEC_SECURE, ptr);
|
||||||
|
|
||||||
munmap(ptr, batch_size);
|
if (ptr)
|
||||||
|
munmap(ptr, batch_size);
|
||||||
gem_madvise(fd, handle, I915_MADV_DONTNEED);
|
gem_madvise(fd, handle, I915_MADV_DONTNEED);
|
||||||
|
|
||||||
if (batch_size < max && 2*batch_size > max)
|
if (batch_size < max && 2*batch_size > max)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user