media: vivid: free bitmap_cap when updating std/timings/etc.
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 9 Nov 2018 13:37:44 +0000 (08:37 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:23:40 +0000 (06:23 -0500)
commit560ccb75c2caa6b1039dec1a53cd2ef526f5bf03
tree7bb4bb9363e7e1266116f06ec14d7f2f53f297df
parente5f71a27fa12c1a1b02ad478a568e76260f1815e
media: vivid: free bitmap_cap when updating std/timings/etc.

When vivid_update_format_cap() is called it should free any overlay
bitmap since the compose size will change.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org> # for v3.18 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-cap.c