2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/panthor
Harshit Mogalapalli 45c734fdd4 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: 4bdca11507 ("drm/panthor: Add the driver frontend block")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240402141412.1707949-1-harshit.m.mogalapalli@oracle.com
2024-04-03 09:11:38 +02:00
..
Kconfig Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue" 2024-03-11 14:16:10 +02:00
Makefile drm/panthor: Allow driver compilation 2024-03-01 10:04:29 +01:00
panthor_devfreq.c drm/panthor: Fix panthor_devfreq kerneldoc 2024-03-11 10:50:37 +01:00
panthor_devfreq.h drm/panthor: Add the devfreq logical block 2024-03-01 10:04:07 +01:00
panthor_device.c drm/panthor: Fix IO-page mmap() for 32-bit userspace on 64-bit kernel 2024-04-02 09:33:46 +02:00
panthor_device.h drm/panthor: Cleanup unused variable 'cookie' 2024-04-03 09:06:24 +02:00
panthor_drv.c drm/panthor: Don't return NULL from panthor_vm_get_heap_pool() 2024-04-03 09:11:38 +02:00
panthor_fw.c drm/panthor: Fix off by one in panthor_fw_get_cs_iface() 2024-04-03 09:06:28 +02:00
panthor_fw.h drm/panthor: Add the FW logical block 2024-03-01 10:04:12 +01:00
panthor_gem.c drm/panthor: Add GEM logical block 2024-03-01 10:04:06 +01:00
panthor_gem.h drm/panthor: Add GEM logical block 2024-03-01 10:04:06 +01:00
panthor_gpu.c drm/panthor: Fix error code in panthor_gpu_init() 2024-04-03 09:06:27 +02:00
panthor_gpu.h drm/panthor: Add the GPU logical block 2024-03-01 10:04:04 +01:00
panthor_heap.c drm/panthor: Add the heap logical block 2024-03-01 10:04:15 +01:00
panthor_heap.h drm/panthor: Add the heap logical block 2024-03-01 10:04:15 +01:00
panthor_mmu.c drm/panthor: Don't return NULL from panthor_vm_get_heap_pool() 2024-04-03 09:11:38 +02:00
panthor_mmu.h drm/panthor: Add the MMU/VM logical block 2024-03-01 10:04:09 +01:00
panthor_regs.h
panthor_sched.c drm/panthor: Don't return NULL from panthor_vm_get_heap_pool() 2024-04-03 09:11:38 +02:00
panthor_sched.h drm/panthor: Add the scheduler logical block 2024-03-01 10:04:17 +01:00