diff options
| author | Rafael J. Wysocki <[email protected]> | 2015-12-04 13:01:02 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2015-12-04 13:01:02 +0000 |
| commit | c09c9dd2e9c732658c744a802101d5c34fedde22 (patch) | |
| tree | 89f930ede811e66e7a70761aaca079d779fed38a /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
| parent | x86/PCI/ACPI: Fix regression caused by commit 4d6b4e69a245 (diff) | |
| parent | PCI / PM: Tune down retryable runtime suspend error messages (diff) | |
| download | kernel-c09c9dd2e9c732658c744a802101d5c34fedde22.tar.gz kernel-c09c9dd2e9c732658c744a802101d5c34fedde22.zip | |
Merge branches 'acpi-pci' and 'pm-pci'
* acpi-pci:
x86/PCI/ACPI: Fix regression caused by commit 4d6b4e69a245
* pm-pci:
PCI / PM: Tune down retryable runtime suspend error messages
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index e0b80ccdfe8a..fec65f01c031 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c @@ -69,6 +69,9 @@ void amdgpu_ctx_fini(struct amdgpu_ctx *ctx) struct amdgpu_device *adev = ctx->adev; unsigned i, j; + if (!adev) + return; + for (i = 0; i < AMDGPU_MAX_RINGS; ++i) for (j = 0; j < AMDGPU_CTX_MAX_CS_PENDING; ++j) fence_put(ctx->rings[i].fences[j]); |
