media: vivid: use vfree() instead of kfree() for dev->bitmap_cap
authorAlexander Potapenko <glider@google.com>
Thu, 4 Apr 2019 14:56:46 +0000 (10:56 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:43:50 +0000 (11:43 -0400)
commitdad7e270ba712ba1c99cd2d91018af6044447a06
tree389a06a987d1a682b973f8e4ace1659410df8536
parent1f7f11e8ca15366e6c1e62e4d4dc5d1ecb3b2eb4
media: vivid: use vfree() instead of kfree() for dev->bitmap_cap

syzkaller reported crashes on kfree() called from
vivid_vid_cap_s_selection(). This looks like a simple typo, as
dev->bitmap_cap is allocated with vzalloc() throughout the file.

Fixes: ef834f7836ec0 ("[media] vivid: add the video capture and output
parts")

Signed-off-by: Alexander Potapenko <glider@google.com>
Reported-by: Syzbot <syzbot+6c0effb5877f6b0344e2@syzkaller.appspotmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-cap.c