drm/xe/tile: Release kobject for the failure path
authorShuicheng Lin <shuicheng.lin@intel.com>
Tue, 19 Aug 2025 15:39:51 +0000 (15:39 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 15 Sep 2025 12:26:19 +0000 (08:26 -0400)
commit013e484dbd687a9174acf8f4450217bdb86ad788
treead64744f00ad5b170abcb3a09b65325d19f12be8
parentf83ec76bf285bea5727f478a68b894f5543ca76e
drm/xe/tile: Release kobject for the failure path

Call kobject_put() for the failure path to release the kobject

v2: remove extra newline. (Matt)

Fixes: e3d0839aa501 ("drm/xe/tile: Abort driver load for sysfs creation failure")
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://lore.kernel.org/r/20250819153950.2973344-2-shuicheng.lin@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
(cherry picked from commit b98775bca99511cc22ab459a2de646cd2fa7241f)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_tile_sysfs.c