media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Nov 2018 14:04:54 +0000 (09:04 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:20:01 +0000 (06:20 -0500)
commit52117be68b82ee05c96da0a7beec319906ccf6cc
tree199ca34f17ac36aeec05f92f00ef3e1cb75844ab
parente10b40f3304360d3a2d07d690ff12197f828f2c8
media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work

The use of flush_schedule_work() made no sense and caused a syzkaller error.
Replace with the correct cancel_delayed_work_sync().

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: syzbot+69780d144754b8071f4b@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org> # for v4.20 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vim2m.c