runqueue: fix use-after-free bug
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Jun 2017 10:08:42 +0000 (12:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 14 Jun 2017 10:08:53 +0000 (12:08 +0200)
commit6a7fb7d8df308d18167051447fa489de389588df
tree69428277d4422ede1a3ab15f519d34e0e028cc27
parent368fd2645878edadc72c60948d1f19c6769751d6
runqueue: fix use-after-free bug

Calling t->complete in runqueue_task_complete can free the memory
associated with t. Change the runqueue_start_next accordingly.

Fixes https://github.com/openwrt/openwrt/issues/493

Signed-off-by: Felix Fietkau <nbd@nbd.name>
runqueue.c