drm/amdgpu: set metadata pointer to NULL after freeing.
authorDave Airlie <airlied@redhat.com>
Tue, 3 May 2016 02:44:29 +0000 (12:44 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 May 2016 15:53:44 +0000 (11:53 -0400)
commit0092d3edcb23fcdb8cbe4159ba94a534290ff982
treee58d9c93ba27914d0d3c56074c6ce809c2b2db59
parentea99697814d6e64927e228675a6eb7fa76014648
drm/amdgpu: set metadata pointer to NULL after freeing.

Without this there was a double free of the metadata,
which ended up freeing the fd table for me here, and taking
out the machine more often than not.

I reproduced with X.org + modesetting DDX + latest llvm/mesa,
also required using dri3.

Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
This page took 0.025989 seconds and 5 git commands to generate.