drm/amdgpu: fix race in GEM VA map IOCTL v2
authorChristian König <christian.koenig@amd.com>
Fri, 27 Jan 2017 14:58:43 +0000 (15:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Feb 2017 18:50:03 +0000 (13:50 -0500)
commit2ffdaafb5d5f37bf66da1b775333a7abc2b69563
tree799aa6a9627fdade2632fbff8fc14d6d0900d7cc
parent18566acac18f5784347bc5fe636a26897d1c963b
drm/amdgpu: fix race in GEM VA map IOCTL v2

Somebody could try to free the bo_va between mapping and updating it.

v2: fix typos in comment

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c