Corentin Labbe e3b86f4e55 media: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com
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>
2022-01-23 21:18:40 +01:00
..
2021-07-27 12:17:21 +02:00
2021-11-04 07:56:22 -07:00
2021-11-04 07:56:22 -07:00
2021-11-29 08:03:05 +01:00
2021-11-29 08:03:05 +01:00