diff options
author | Samuel Pitoiset <[email protected]> | 2017-02-02 18:40:18 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-02-03 12:07:14 +0100 |
commit | af303abcdbeac3b90fb760de19bed56cc40cfff4 (patch) | |
tree | db67302a9c3c0db6aaa4216569258deebb01297b /src/mesa/main/context.c | |
parent | 0a2dcd3a8ac4bf18cd6ec2f778c9ef859ef90a51 (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" <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
0 files changed, 0 insertions, 0 deletions