Commit 2e3c18d0 authored by Committed by Jens Axboe
block: pass no-op callback to INIT_WORK().
syzbot is hitting flush_work() warning caused by commit 4d43d395 ("workqueue: Try to catch flush_work() without INIT_WORK().") . Although that commit did not expect INIT_WORK(NULL) case, calling flush_work() without setting a valid callback should be avoided anyway. Fix this problem by setting a no-op callback instead of NULL.  https://syzkaller.appspot.com/bug?id=e390366bc48bc82a7c668326e0663be3b91cbd29Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reported-and-tested-by: syzbot <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Signed-off-by: Jens Axboe <firstname.lastname@example.org>
Showing with 5 additions and 1 deletion