commit | f02f17f133d7f979215d8bf6fc33e2c97f17457b | [log] [tgz] |
---|---|---|
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | Thu Feb 02 18:40:18 2017 +0100 |
committer | Emil Velikov <emil.l.velikov@gmail.com> | Wed Feb 08 14:30:50 2017 +0000 |
tree | 2466252a3764158a17ae7091451e7d52127fc5ff | |
parent | d4f1ed62158e69a028e84d9ebc1b642be5bf0e07 [diff] |
winsys/amdgpu: avoid potential segfault in amdgpu_bo_map() 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. Cc: "17.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit af303abcdbeac3b90fb760de19bed56cc40cfff4)