Patch "drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-fix-dropped-backing-store-handling-in-amd.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 71ed39757c11d6d7be2eea0bf579aa57c6e1a3e3
Author: Christian König <ckoenig.leichtzumerken@xxxxxxxxx>
Date:   Fri Dec 10 09:39:27 2021 +0100

    drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify
    
    [ Upstream commit fc74881c28d314b10efac016ef49df4ff40b8b97 ]
    
    bo->tbo.resource can now be NULL.
    
    Signed-off-by: Christian König <christian.koenig@xxxxxxx>
    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1811
    Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211210083927.1754-1-christian.koenig@xxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
index ae6ab93c868b8..7444484a12bf8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
@@ -384,7 +384,7 @@ amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)
 	struct amdgpu_vm_bo_base *bo_base;
 	int r;
 
-	if (bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
+	if (!bo->tbo.resource || bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
 		return;
 
 	r = ttm_bo_validate(&bo->tbo, &placement, &ctx);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux