mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 08:26:10 +00:00
lib: Allow pipe_crc_free(NULL)
Prevent pipe_crc_free() from segfaulting on NULL ptr. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
471ec64de8
commit
987bcd9a5b
@ -197,6 +197,9 @@ void igt_pipe_crc_reset(void)
|
||||
|
||||
void igt_pipe_crc_free(igt_pipe_crc_t *pipe_crc)
|
||||
{
|
||||
if (!pipe_crc)
|
||||
return;
|
||||
|
||||
close(pipe_crc->ctl_fd);
|
||||
close(pipe_crc->crc_fd);
|
||||
free(pipe_crc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user