linux/drivers/gpu/drm/v3d
Harshit Mogalapalli dce94061f0 drm/v3d: Fix missing error code in v3d_submit_cpu_ioctl()
Smatch warns:
	drivers/gpu/drm/v3d/v3d_submit.c:1222 v3d_submit_cpu_ioctl()
	warn: missing error code 'ret'

When there is no job type or job is submitted with wrong number of BOs
it is an error path, ret is zero at this point which is incorrect
return.

Fix this by changing it to -EINVAL.

Fixes: aafc1a2bea ("drm/v3d: Add a CPU job submission")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231204122102.181298-1-harshit.m.mogalapalli@oracle.com
2023-12-04 21:30:33 -01:00
..
Kconfig
Makefile drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_bo.c drm/v3d: Enable BO mapping 2023-12-01 09:37:50 -03:00
v3d_debugfs.c drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_drv.c drm/v3d: Add a CPU job submission 2023-12-01 09:34:19 -03:00
v3d_drv.h drm/v3d: Create a CPU job extension for the copy performance query job 2023-12-01 09:47:36 -03:00
v3d_fence.c
v3d_gem.c drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_irq.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_mmu.c
v3d_perfmon.c
v3d_regs.h drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_sched.c drm/v3d: Create a CPU job extension for the copy performance query job 2023-12-01 09:47:36 -03:00
v3d_submit.c drm/v3d: Fix missing error code in v3d_submit_cpu_ioctl() 2023-12-04 21:30:33 -01:00
v3d_sysfs.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_trace.h drm/v3d: Create tracepoints to track the CPU job 2023-12-01 09:37:48 -03:00
v3d_trace_points.c