summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-01 15:29:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-01 15:29:45 +0000
commit4d8f3b2c8034f1bdf64d65d484e5d5cd18410fb7 (patch)
tree5675af92b77dd1326404717962557f90311c74c9 /lib
parentcdd30a3d77e3ddd67fee28a2d16ed85e700c6bc0 (diff)
lib/igt_dummyload: Don't clear a signal if we haven't installed the timeout
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_dummyload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index ec36d1a2..a2bae75a 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -255,7 +255,8 @@ void igt_spin_batch_end(igt_spin_t *spin)
*spin->batch = MI_BATCH_BUFFER_END;
__sync_synchronize();
- clear_sig_handler(spin->signo);
+ if (spin->signo)
+ clear_sig_handler(spin->signo);
}
/**