async: initialise list heads to fix crash
[linux-2.6-block.git] / kernel / async.c
index 6958000eeb44ff8254e94e9ee76b60523393c1cc..8ddee2c3e5b04ac290f0d923fd21c60d2f85ffd2 100644 (file)
@@ -172,6 +172,8 @@ static async_cookie_t __async_schedule(async_func_ptr *ptr, void *data, struct a
                ptr(data, newcookie);
                return newcookie;
        }
+       INIT_LIST_HEAD(&entry->domain_list);
+       INIT_LIST_HEAD(&entry->global_list);
        INIT_WORK(&entry->work, async_run_entry_fn);
        entry->func = ptr;
        entry->data = data;