Am 18.09.2017 um 08:11 schrieb Monk Liu: > Change-Id: Ifc6942ed0221f3134bfba4d66fde743484191da3 > Signed-off-by: Monk Liu <Monk.Liu at amd.com> Reviewed-by: Christian König <christian.koenig at amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > index e390c01..d1ac27d 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c > @@ -841,8 +841,11 @@ int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv) > > if (amdgpu_sriov_vf(adev)) { > r = amdgpu_map_static_csa(adev, &fpriv->vm, &fpriv->csa_va); > - if (r) > + if (r) { > + amdgpu_vm_fini(adev, &fpriv->vm); > + kfree(fpriv); > goto out_suspend; > + } > } > > mutex_init(&fpriv->bo_list_lock);