Signed-off-by: Marius Vlad <marius.c.vlad@xxxxxxxxx> --- tests/gem_concurrent_all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index 10e5357..e84ded3 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -650,7 +650,7 @@ static int read_sysctl(const char *path) FILE *file = fopen(path, "r"); int max = 0; if (file) { - fscanf(file, "%d", &max); + igt_assert(fscanf(file, "%d", &max) == 1); fclose(file); } return max; -- 2.8.0.rc3 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx