mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
igt_kms: Fix use after free in kmstest_get_pipe_from_crtc_id
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
This commit is contained in:
parent
79f804e8d8
commit
1aebeeb440
@ -402,10 +402,10 @@ int kmstest_get_pipe_from_crtc_id(int fd, int crtc_id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
drmModeFreeResources(res);
|
|
||||||
|
|
||||||
igt_assert(i < res->count_crtcs);
|
igt_assert(i < res->count_crtcs);
|
||||||
|
|
||||||
|
drmModeFreeResources(res);
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user