Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: staging: media: zoran: calculate the right buffer number for z…
…oran_reap_stat_com [ Upstream commit e3b86f4 ] On the case tmp_dcim=1, the index of buffer is miscalculated. This generate a NULL pointer dereference later. So let's fix the calcul and add a check to prevent this to reappear. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information