]> Gentwo Git Trees - linux/.git/commit
drm/xe: Fix an IS_ERR() vs NULL bug in xe_tile_alloc_vram()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 18 Jul 2025 21:23:05 +0000 (16:23 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 21 Jul 2025 14:38:05 +0000 (10:38 -0400)
commit6c9e64e83b22405622d1f47417cdb0d20d49ca35
treea7e8fed03209a8b7a870e3a303d87be26a2c5d8d
parent4b5514f786dd790ec0d3e2fe66cea7fd2f36bdf3
drm/xe: Fix an IS_ERR() vs NULL bug in xe_tile_alloc_vram()

The xe_vram_region_alloc() function returns NULL on error.  It never
returns error pointers.  Update the error checking to match.

Fixes: 4b0a5f5ce784 ("drm/xe: Unify the initialization of VRAM regions")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/5449065e-9758-4711-b706-78771c0753c4@sabinyo.mountain
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_tile.c