]> git.hungrycats.org Git - linux/commitdiff
drm/amdgpu: debugfs: avoid extra EOLs in amdgpu_gem_info
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 2 Jul 2026 16:24:41 +0000 (18:24 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:43 +0000 (09:15 -0400)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 718937777e5323723a96f33492cf7e3594914269..d4a9d5e8fb429aa895dbe1828a43be3e641ab7aa 100644 (file)
@@ -1699,8 +1699,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;
 }