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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:21:57 +0000 (08:21 +0200)
commitf999485109d1bd2553535cfb0797827c2b3d9cb8
treec542a34f98fe4b61964458f8cfe3df0a2692e012
parenta7b6f95f3ca616c0a9b03ba69f6c3e37849fc542
media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work

[ Upstream commit 52117be68b82ee05c96da0a7beec319906ccf6cc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/vim2m.c