diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2019-01-30 22:21:45 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-30 08:53:20 -0700 |
commit | 2e3c18d0ada16f145087b2687afcad1748c0827c (patch) | |
tree | ffcd11616cf5e9fd0d353b659b9d2d1a12340c69 /ipc/msg.c | |
parent | 3ca17a24e7fb3937417acf7d74773e3dbcf99dc7 (diff) | |
download | lwn-2e3c18d0ada16f145087b2687afcad1748c0827c.tar.gz lwn-2e3c18d0ada16f145087b2687afcad1748c0827c.zip |
block: pass no-op callback to INIT_WORK().
syzbot is hitting flush_work() warning caused by commit 4d43d395fed12463
("workqueue: Try to catch flush_work() without INIT_WORK().") [1].
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.
[1] https://syzkaller.appspot.com/bug?id=e390366bc48bc82a7c668326e0663be3b91cbd29
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reported-and-tested-by: syzbot <syzbot+ba2a929dcf8e704c180e@syzkaller.appspotmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions