]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: stm32: dcmipp: correct error handling in dcmipp_create_subdevs
authorAlain Volmat <alain.volmat@foss.st.com>
Wed, 3 Jul 2024 11:59:16 +0000 (13:59 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 3 Jul 2024 13:52:24 +0000 (15:52 +0200)
commita7351f0d3668b449fdc2cfd90403b1cb1f03ed6d
treeffefca530a1282f6f8f3236d65c976cb399f38f9
parent5d5f67b3b23f42eafdba508d6075fa714cbe2ed2
media: stm32: dcmipp: correct error handling in dcmipp_create_subdevs

Correct error handling within the dcmipp_create_subdevs by properly
decrementing the i counter when releasing the subdevs.

Fixes: 28e0f3772296 ("media: stm32-dcmipp: STM32 DCMIPP camera interface driver")
Cc: stable@vger.kernel.org
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
[hverkuil: correct the indices: it's [i], not [i - 1].]
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c