diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-19 22:05:28 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-11-30 12:31:18 +0100 |
commit | 8cc7a1b2aca067397a016cdb971a5e6ad9b640c7 (patch) | |
tree | de0300f753d528881a1ba4df39f738a22f746e87 /tools/testing/selftests/memfd/run_fuse_test.sh | |
parent | e4debea9be7d5db52bc6a565a4c02c3c6560d093 (diff) | |
download | linux-8cc7a1b2aca067397a016cdb971a5e6ad9b640c7.tar.gz |
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: f9799fcce4bb ("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>
Diffstat (limited to 'tools/testing/selftests/memfd/run_fuse_test.sh')
0 files changed, 0 insertions, 0 deletions