linux-stable/drivers/media
Hans Verkuil 74e2e978d1 media: vivid: dev->bitmap_cap wasn't freed in all cases
[ Upstream commit 1f65ea411c ]

Whenever the compose width/height values change, the dev->bitmap_cap
vmalloc'ed array must be freed and dev->bitmap_cap set to NULL.

This was done in some places, but not all. This is only an issue if
overlay support is enabled and the bitmap clipping is used.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: ef834f7836 ([media] vivid: add the video capture and output parts)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-04 00:00:31 +09:00
..
cec media: platform: cros-ec: Add kinox to the match table 2022-06-27 08:54:29 +01:00
common media: videobuf2: Introduce vb2_find_buffer() 2022-07-17 11:10:11 +01:00
dvb-core media: dvb_vb2: fix possible out of bound access 2022-09-27 10:24:44 +02:00
dvb-frontends media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: ov8865: Fix an error handling path in ov8865_probe() 2022-11-04 00:00:25 +09:00
mc media: mc-entity: Add a new helper function to get a remote pad for a pad 2022-07-17 11:23:51 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: cx88: Fix a null-ptr-deref bug in buffer_prepare() 2022-10-21 12:39:20 +02:00
platform media: sun8i-rotate: Add a Kconfig dependency on RESET_CONTROLLER 2022-11-04 00:00:26 +09:00
radio media: make RADIO_ADAPTERS tristate 2022-05-13 11:02:19 +02:00
rc media: mceusb: set timeout to at least timeout provided 2022-10-29 10:08:31 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: dev->bitmap_cap wasn't freed in all cases 2022-11-04 00:00:31 +09:00
tuners media: si2157: unknown chip version Si2147-A30 ROM 0x50 2022-04-09 17:45:49 +02:00
usb media: uvcvideo: Use entity get_cur in uvc_ctrl_set 2022-10-21 12:38:41 +02:00
v4l2-core media: v4l2-ioctl.c: fix incorrect error path 2022-09-27 10:24:43 +02:00
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00