diff options
| author | Dave Airlie <[email protected]> | 2016-05-05 00:37:25 +0000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2016-05-05 00:37:25 +0000 |
| commit | 80623de03b97efef8df4c8067ab606585663e042 (patch) | |
| tree | 0e9be63e05e914031b0bbdf6608d6ddd1c27d55e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading (diff) | |
| parent | drm/amdgpu: make sure vertical front porch is at least 1 (diff) | |
| download | kernel-80623de03b97efef8df4c8067ab606585663e042.tar.gz kernel-80623de03b97efef8df4c8067ab606585663e042.zip | |
Merge branch 'drm-fixes-4.6' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
two fixes for hw lockups and one for a double free
* 'drm-fixes-4.6' of git://people.freedesktop.org/~agd5f/linux:
drm/amdgpu: make sure vertical front porch is at least 1
drm/radeon: make sure vertical front porch is at least 1
drm/amdgpu: set metadata pointer to NULL after freeing.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index e557fc1f17c8..7ecea83ce453 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -541,6 +541,7 @@ int amdgpu_bo_set_metadata (struct amdgpu_bo *bo, void *metadata, if (!metadata_size) { if (bo->metadata_size) { kfree(bo->metadata); + bo->metadata = NULL; bo->metadata_size = 0; } return 0; |
