1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/qcom/venus
Christophe JAILLET 8cc7a1b2ac media: venus: core: Fix a resource leak in the error handling path of 'venus_probe()'
A successful 'of_platform_populate()' call should be balanced by a
corresponding 'of_platform_depopulate()' call in the error handling path
of the probe, as already done in the remove function.

A successful 'venus_firmware_init()' call should be balanced by a
corresponding 'venus_firmware_deinit()' call in the error handling path
of the probe, as already done in the remove function.

Update the error handling path accordingly.

Fixes: f9799fcce4 ("media: venus: firmware: register separate platform_device for firmware loader")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-11-30 12:31:18 +01:00
..
core.c media: venus: core: Fix a resource leak in the error handling path of 'venus_probe()' 2021-11-30 12:31:18 +01:00
core.h media: venus: vdec: decoded picture buffer handling during reconfig sequence 2021-10-21 14:24:48 +01:00
dbgfs.c media: venus: place extern venus_fw_debug on a header file 2020-09-03 11:09:54 +02:00
dbgfs.h media: venus: Add debugfs interface to set firmware log level 2020-09-01 14:13:30 +02:00
firmware.c media: venus: firmware: enable no tz fw loading for sc7280 2021-10-08 11:26:13 +02:00
firmware.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
helpers.c media: venus: vdec: decoded picture buffer handling during reconfig sequence 2021-10-21 14:24:48 +01:00
helpers.h media: venus: vdec: decoded picture buffer handling during reconfig sequence 2021-10-21 14:24:48 +01:00
hfi.c media: venus: hfi: Check for sys error on session hfi functions 2021-10-21 14:21:15 +01:00
hfi.h media: venus: Add new interface queues reinit 2020-09-01 14:13:29 +02:00
hfi_cmds.c media: venus: vdec: set work route to fw 2021-10-08 11:26:14 +02:00
hfi_cmds.h media: venus: hfi_cmds.h: Replace one-element array with flexible-array member 2021-06-02 12:25:44 +02:00
hfi_helper.h media: venus: Set buffer to FW based on FW min count requirement. 2021-10-08 11:26:14 +02:00
hfi_msgs.c media: venus: Set buffer to FW based on FW min count requirement. 2021-10-08 11:26:14 +02:00
hfi_msgs.h media: venus: hfi_msgs.h: Replace one-element arrays with flexible-array members 2021-06-17 09:42:30 +02:00
hfi_parser.c media: venus: hfi_parser: Check for instance after hfi platform get 2021-04-06 14:50:32 +02:00
hfi_parser.h media: venus: helpers: Wire up hfi platform buffer requirements 2021-01-13 09:20:55 +01:00
hfi_plat_bufs.h media: venus: Add platform buffers for v6 2021-01-13 09:19:23 +01:00
hfi_plat_bufs_v6.c media: venus: Set buffer to FW based on FW min count requirement. 2021-10-08 11:26:14 +02:00
hfi_platform.c media: venus: Add num_vpp_pipes to resource structure 2021-10-08 11:26:13 +02:00
hfi_platform.h media: venus: Add num_vpp_pipes to resource structure 2021-10-08 11:26:13 +02:00
hfi_platform_v4.c media: venus: Enable low power setting for encoder 2021-06-02 12:28:17 +02:00
hfi_platform_v6.c media: venus: Add num_vpp_pipes to resource structure 2021-10-08 11:26:13 +02:00
hfi_venus.c media: venus: hfi: Skip AON register programming for V6 1pipe 2021-10-08 11:26:14 +02:00
hfi_venus.h media: venus: Add new interface queues reinit 2020-09-01 14:13:29 +02:00
hfi_venus_io.h media: venus: firmware: enable no tz fw loading for sc7280 2021-10-08 11:26:13 +02:00
Makefile media: venus: Add platform buffers for v6 2021-01-13 09:19:23 +01:00
pm_helpers.c media: venus: avoid calling core_clk_setrate() concurrently during concurrent video sessions 2021-11-30 12:30:41 +01:00
pm_helpers.h media: venus: core, venc, vdec: Fix probe dependency error 2021-03-22 09:37:02 +01:00
vdec.c media: venus: vdec: decoded picture buffer handling during reconfig sequence 2021-10-21 14:24:48 +01:00
vdec.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
vdec_ctrls.c media: venus: vdec: Add support for conceal control 2021-04-06 14:54:46 +02:00
venc.c media: venus: Handle fatal errors during encoding and decoding 2021-10-21 14:23:15 +01:00
venc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
venc_ctrls.c media: venus: venc: add support for V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM control 2021-08-04 14:43:52 +02:00