Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: stm32-dcmi: fix crash when subdev do not expose any formats
[ Upstream commit 33dfeb6 ] Do not access sd_formats[] if num_of_sd_formats is zero, ie subdev sensor didn't expose any formats. Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information