diff options
| author | Harshit Mogalapalli <[email protected]> | 2023-12-04 04:21:01 -0800 |
|---|---|---|
| committer | Melissa Wen <[email protected]> | 2023-12-04 21:30:33 -0100 |
| commit | dce94061f0d02f5ab355390a6e63d3dbea938b72 (patch) | |
| tree | d6e0b1cb156fe6f8a7d827dec9b56220fb262463 /tools/perf/scripts/python | |
| parent | 90422201f8f2b4e26ab7bd43b92786a11c1ffebf (diff) | |
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: aafc1a2bea67 ("drm/v3d: Add a CPU job submission")
Signed-off-by: Harshit Mogalapalli <[email protected]>
Reviewed-by: Melissa Wen <[email protected]>
Signed-off-by: Melissa Wen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions