Re: [Mesa-dev] [PATCH] winsys/amdgpu: avoid potential segfault in amdgpu_bo_map()

2017-02-02 Thread Marek Olšák
Cc stable? Reviewed-by: Marek Olšák Marek On Thu, Feb 2, 2017 at 6:40 PM, Samuel Pitoiset wrote: > cs can be NULL when it comes from r600_buffer_map_sync_with_rings() > to avoid doing the same checks. It was checked for write mappings > but not for read mappings. > > Signed-off-by: Samuel Pito

[Mesa-dev] [PATCH] winsys/amdgpu: avoid potential segfault in amdgpu_bo_map()

2017-02-02 Thread Samuel Pitoiset
cs can be NULL when it comes from r600_buffer_map_sync_with_rings() to avoid doing the same checks. It was checked for write mappings but not for read mappings. Signed-off-by: Samuel Pitoiset --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 17 ++--- 1 file changed, 10 insertions(+),