diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-01 15:21:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-01 15:21:06 +0000 |
commit | 0a7d1f7efe0813fd35ab5dcced3219f951b1218c (patch) | |
tree | 66d6eddddaa286a15e763b1fa7cf70195cfde0c5 /lib/igt_dummyload.c | |
parent | 32d38ea2f6c3e07d38bc65f8cf2df1e0c0fe1c6b (diff) |
lib/dummyload: Clear the right signal afterwards
If the signal handler fires after we delete the busybatch, it would walk
the list and find no match. Then attempt to use the list_head as its
info->signo. Use the passed in sig instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r-- | lib/igt_dummyload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index 116ee903..00bb626b 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -192,7 +192,7 @@ static void sig_handler(int sig, siginfo_t *info, void *arg) } } - clear_sig_handler(info->si_signo); + clear_sig_handler(sig); } /** |