From: Lucas De Marchi Date: Thu, 13 Feb 2025 19:29:00 +0000 (-0800) Subject: drm/xe: Fix xe_tile_init_noalloc() error propagation X-Git-Tag: v6.15-rc1~120^2~15^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bcf41171c64234e79eb3552d00f0aad8a47e8d3;p=thirdparty%2Fkernel%2Flinux.git drm/xe: Fix xe_tile_init_noalloc() error propagation Propagate the error to the caller so initialization properly stops if sysfs creation fails. Reviewed-by: Francois Dugast Reviewed-by: Himal Prasad Ghimiray Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-4-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi --- diff --git a/drivers/gpu/drm/xe/xe_tile.c b/drivers/gpu/drm/xe/xe_tile.c index d9a7a04ff652f..d29658ff4dd41 100644 --- a/drivers/gpu/drm/xe/xe_tile.c +++ b/drivers/gpu/drm/xe/xe_tile.c @@ -168,9 +168,7 @@ int xe_tile_init_noalloc(struct xe_tile *tile) xe_wa_apply_tile_workarounds(tile); - err = xe_tile_sysfs_init(tile); - - return 0; + return xe_tile_sysfs_init(tile); } int xe_tile_init(struct xe_tile *tile)