commit | f2116b8cb76255634c150e4e3bf25d2c911bc616 | [log] [tgz] |
---|---|---|
author | Cyril Hrubis <chrubis@suse.cz> | Mon Jan 30 15:22:35 2017 +0100 |
committer | Cyril Hrubis <chrubis@suse.cz> | Mon Jan 30 15:25:37 2017 +0100 |
tree | b123cca34a7c0144157e60151d87b9ba2f4b2342 | |
parent | 9a5571d71db70bb73b5d6ab403718d2e01b10ee2 [diff] |
aio-stress: Fix segfaults When the memory returned from malloc() contains some garbage, the t[0].active_opers is not initialized to zero and the testcase segfaults in oper_list_add() while trying to insert into the linked list: Program received signal SIGSEGV, Segmentation fault. 0x0000000000401807 in oper_list_add (oper=0x607220, list=0x6070a0) at aio-stress.c:315 315 oper->prev = (*list)->prev; Signed-off-by: Cyril Hrubis <chrubis@suse.cz>