aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ccs/ccs-core.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-07-30 18:24:44 +0000
committerHans Verkuil <[email protected]>2025-08-18 07:55:05 +0000
commit0d58a72b66ec4c24128395e408348c2c84221605 (patch)
treea41b3a8a9d02734d64e23ed8c96eb8b080909f1f /drivers/media/i2c/ccs/ccs-core.c
parentmedia: rkvdec: Fix a NULL vs IS_ERR() bug in probe() (diff)
downloadkernel-0d58a72b66ec4c24128395e408348c2c84221605.tar.gz
kernel-0d58a72b66ec4c24128395e408348c2c84221605.zip
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 <[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/media/i2c/ccs/ccs-core.c')
0 files changed, 0 insertions, 0 deletions