v3d: print error on perfmon destroy error
Print an error in case destroying the kernel perfmon fails.
Fixes CID 1489964: Error handling issues (CHECKED_RETURN).
v2:
- Wrap line (Iago).
Fixes: 685281278e
("v3d: implement performance counter queries")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12280>
This commit is contained in:
parent
d0e83b6174
commit
91a5afcd5f
|
@ -133,7 +133,10 @@ kperfmon_destroy(struct v3d_context *v3d, struct v3d_perfmon_state *perfmon)
|
|||
struct drm_v3d_perfmon_destroy destroyreq;
|
||||
|
||||
destroyreq.id = perfmon->kperfmon_id;
|
||||
v3d_ioctl(v3d->fd, DRM_IOCTL_V3D_PERFMON_DESTROY, &destroyreq);
|
||||
int ret = v3d_ioctl(v3d->fd, DRM_IOCTL_V3D_PERFMON_DESTROY, &destroyreq);
|
||||
if (ret != 0)
|
||||
fprintf(stderr, "failed to destroy perfmon %d: %s\n",
|
||||
perfmon->kperfmon_id, strerror(errno));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue