Signed-off-by: Michał Mirosław <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 4dd7c712b8c3..9ee894e0dbe2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -1696,8 +1696,9 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, 
struct seq_file *m)
        if (dma_resv_trylock(bo->tbo.base.resv)) {
                dma_resv_describe(bo->tbo.base.resv, m);
                dma_resv_unlock(bo->tbo.base.resv);
+       } else {
+               seq_puts(m, "\n");
        }
-       seq_puts(m, "\n");
 
        return size;
 }
-- 
2.47.3

Reply via email to