[Intel-xe] ✗ CI.checkpatch: warning for drm/xe: Fix error paths of __xe_bo_create_locked

Patchwork patchwork at emeril.freedesktop.org
Tue Jul 25 16:01:46 UTC 2023


== Series Details ==

Series: drm/xe: Fix error paths of __xe_bo_create_locked
URL   : https://patchwork.freedesktop.org/series/121321/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
c7d32770e3cd31d9fc134ce41f329b10aa33ee15
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 9c8c2fbe06ec53eca35adb48d1bce6eb65d845d4
Author: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Date:   Tue Jul 25 17:12:39 2023 +0200

    drm/xe: Fix error paths of __xe_bo_create_locked
    
    ttm_bo_init_reserved() calls the destroy() callback if it fails.
    
    Because of this, __xe_bo_create_locked is required to be responsible
    for freeing the bo even when it's passed in as argument.
    
    Additionally, if the placement check fails, the bo was kept alive.
    Fix it too.
    
    Reported-by: Oded Gabbay <ogabbay at kernel.org>
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
+ /mt/dim checkpatch c7ed768399f6a4769bc4c18f92605d14201b0793 drm-intel
9c8c2fbe0 drm/xe: Fix error paths of __xe_bo_create_locked
-:14: WARNING:BAD_REPORTED_BY_LINK: Reported-by: should be immediately followed by Closes: with a URL to the report
#14: 
Reported-by: Oded Gabbay <ogabbay at kernel.org>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>

total: 0 errors, 1 warnings, 0 checks, 22 lines checked




More information about the Intel-xe mailing list