summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-07-30 21:24:44 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-18 10:55:05 +0300
commit0d58a72b66ec4c24128395e408348c2c84221605 (patch)
treea41b3a8a9d02734d64e23ed8c96eb8b080909f1f /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent6347dc7fb967521a77f9ff0774d25ef0cca4c6cd (diff)
downloadlinux-0d58a72b66ec4c24128395e408348c2c84221605.tar.xz
media: rkvdec: Fix an error handling path in rkvdec_probe()
If an error occurs after a successful iommu_paging_domain_alloc() call, it should be undone by a corresponding iommu_domain_free() call, as already done in the remove function. In order to fix the issue, move the corresponding call at the end of the function, because it is safe to allocate 'empty_domain' later. Fixes: ff8c5622f9f7 ("media: rkvdec: Restore iommu addresses on errors") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions