bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch
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.
5
6 Fix a possible division by 0 bug when setting up the mmal port for the stats
7 port.
8
9 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
10 ---
11 drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h | 1 +
12 1 file changed, 1 insertion(+)
13
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
17 .step_size = 2,
18 }, {
19 .fourcc = V4L2_META_FMT_BCM2835_ISP_STATS,
20 + .depth = 8,
21 .mmal_fmt = MMAL_ENCODING_BRCM_STATS,
22 /* The rest are not valid fields for stats. */
23 }