diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-07 17:11:05 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-07 17:11:36 +0100 |
commit | c4b871e63ed6b194f113e326dcfe259c0b264bf1 (patch) | |
tree | 3ce3e3d4d9b410e00e54e71548bb3d143eccb32d | |
parent | 0f1db813b1f8142e834fcae4297e489c132a65ee (diff) |
kms_atomic_transition: Only call unprepare_fencing when prepare_fencing is called.
Else we get a null pointer deref on the other tests.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-rw-r--r-- | tests/kms_atomic_transition.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index ccd7268e..797134c0 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -476,7 +476,8 @@ run_transition_test(igt_display_t *display, enum pipe pipe, igt_output_t *output } cleanup: - unprepare_fencing(display, pipe); + if (fencing) + unprepare_fencing(display, pipe); igt_output_set_pipe(output, PIPE_NONE); |