diff options
| author | Detlev Casanova <[email protected]> | 2025-04-25 19:24:47 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2025-05-15 06:13:31 +0000 |
| commit | 11beb0fc346e00c412b3bfd19013206f6b655604 (patch) | |
| tree | bdd9def1852e83389bbf4575b9654b18173031ce /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | media: platform: mtk-mdp3: Remove unused mdp_get_plat_device (diff) | |
| download | kernel-11beb0fc346e00c412b3bfd19013206f6b655604.tar.gz kernel-11beb0fc346e00c412b3bfd19013206f6b655604.zip | |
media: verisilicon: Free post processor buffers on error
During initialization, the post processor allocates the same number of
buffers as the buf queue.
As the init function is called in streamon(), if an allocation fails,
streamon will return an error and streamoff() will not be called, keeping
all post processor buffers allocated.
To avoid that, all post proc buffers are freed in case of an allocation
error.
Fixes: 26711491a807 ("media: verisilicon: Refactor postprocessor to store more buffers")
Signed-off-by: Detlev Casanova <[email protected]>
Reviewed-by: Nicolas Dufresne <[email protected]>
Signed-off-by: Nicolas Dufresne <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
