1 From 7861b78bfcd6ac28bd0143af90b2a39136e8e8f8 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Thu, 25 Nov 2021 08:59:58 +0000
4 Subject: [PATCH] drivers: bcm2835_isp: Fix div by 0 bug.
6 Fix a possible division by 0 bug when setting up the mmal port for the stats
9 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
11 drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h | 1 +
12 1 file changed, 1 insertion(+)
14 --- a/drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h
15 +++ b/drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h
16 @@ -544,6 +544,7 @@ static const struct bcm2835_isp_fmt supp
19 .fourcc = V4L2_META_FMT_BCM2835_ISP_STATS,
21 .mmal_fmt = MMAL_ENCODING_BRCM_STATS,
22 /* The rest are not valid fields for stats. */