aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2024-04-02 14:14:11 +0000
committerBoris Brezillon <[email protected]>2024-04-03 07:11:38 +0000
commit45c734fdd43db14444025910b4c59dd2b8be714a (patch)
tree8248c6fbeb7d9cd3e91696e31f4be93a0f44be64 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/panthor: Fix NULL vs IS_ERR() bug in panthor_probe() (diff)
downloadkernel-45c734fdd43db14444025910b4c59dd2b8be714a.tar.gz
kernel-45c734fdd43db14444025910b4c59dd2b8be714a.zip
drm/panthor: Don't return NULL from panthor_vm_get_heap_pool()
The kernel doc says this function returns either a valid pointer or an ERR_PTR(), but in practice this function can return NULL if create=false. Fix the function to match the doc (return ERR_PTR(-ENOENT) instead of NULL) and adjust all call-sites accordingly. Fixes: 4bdca1150792 ("drm/panthor: Add the driver frontend block") Signed-off-by: Harshit Mogalapalli <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions