Skip to content

Commit

Permalink
core-cpu-cache: fix incorrect close for stress_cpu_cache_get_sh4
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Aug 8, 2023
1 parent aca425c commit 44784df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-cpu-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ static int stress_cpu_cache_get_sh4(stress_cpu_cache_cpu_t *cpu)
if (!cpu->caches) {
pr_err("failed to allocate %zu bytes for cpu caches\n",
2 * sizeof(*(cpu->caches)));
(void)close(fd);
(void)fclose(fp);
return 0;
}

Expand Down

0 comments on commit 44784df

Please sign in to comment.