OpenCloudOS-Kernel/drivers/gpu/drm/v3d
Colin Ian King ce7a1ecf3f drm/v3d: Fix null pointer dereference of pointer perfmon
In the unlikely event that pointer perfmon is null the WARN_ON return path
occurs after the pointer has already been deferenced. Fix this by only
dereferencing perfmon after it has been null checked.

Fixes: 26a4dc29b7 ("drm/v3d: Expose performance counters to userspace")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220424183512.1365683-1-colin.i.king@gmail.com
2022-04-26 11:55:28 -01:00
..
Kconfig drm: v3d: correct reference to config ARCH_BRCMSTB 2021-08-26 11:19:08 +02:00
Makefile drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_bo.c drm/gem-shmem: Set vm_ops in static initializer 2022-02-14 09:42:01 +01:00
v3d_debugfs.c drm: Convert open-coded yes/no strings to yesno() 2022-02-07 13:04:25 -08:00
v3d_drv.c drm/v3d/v3d_drv: Check for error num after setting mask 2022-01-11 19:07:42 -01:00
v3d_drv.h drm/v3d: add multiple syncobjs support 2021-10-04 10:08:46 +01:00
v3d_fence.c drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
v3d_gem.c dma-buf: specify usage while adding fences to dma_resv obj v7 2022-04-07 12:53:53 +02:00
v3d_irq.c drm/v3d: Don't clear MMU control bits on exception 2021-01-06 18:38:57 +01:00
v3d_mmu.c drm: v3d: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
v3d_perfmon.c drm/v3d: Fix null pointer dereference of pointer perfmon 2022-04-26 11:55:28 -01:00
v3d_regs.h drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_sched.c drm/v3d: centralize error handling when init scheduler fails 2022-03-01 22:37:13 -01:00
v3d_trace.h drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
v3d_trace_points.c