kernel_optimize_test/drivers/media
Dillon Min c9f8416e43 media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx
[ Upstream commit 5d11e6aad1811ea293ee2996cec9124f7fccb661 ]

The m2m_ctx resources was allocated by v4l2_m2m_ctx_init() in g2d_open()
should be freed from g2d_release() when it's not used.

Fix it

Fixes: 918847341a ("[media] v4l: add G2D driver for s5p device family")
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:07 +02:00
..
cec media: s5p_cec: decrement usage count if disabled 2021-07-14 16:56:02 +02:00
common media: siano: Fix out-of-bounds warnings in smscore_load_firmware_family2() 2021-07-14 16:56:05 +02:00
dvb-core media: dvb_net: avoid speculation from net slot 2021-07-14 16:55:54 +02:00
dvb-frontends media: dvb: Add check on sp8870_readreg return 2021-06-03 09:00:42 +02:00
firewire
i2c media: tc358743: Fix error return code in tc358743_probe_of() 2021-07-14 16:56:05 +02:00
mc media: Fix Media Controller API config checks 2021-07-14 16:55:56 +02:00
mmc
pci media: bt8xx: Fix a missing check bug in bt878_probe 2021-07-14 16:55:53 +02:00
platform media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx 2021-07-14 16:56:07 +02:00
radio
rc media: ite-cir: check for receive overflow 2021-05-11 14:47:24 +02:00
spi
test-drivers media: vivid: fix assignment of dev->fbuf_out_flags 2021-05-14 09:50:22 +02:00
tuners media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-05-14 09:50:23 +02:00
usb media: gspca/gl860: fix zero-length control requests 2021-07-14 16:56:05 +02:00
v4l2-core media: subdev: remove VIDIOC_DQEVENT_TIME32 handling 2021-07-14 16:56:07 +02:00
Kconfig
Makefile