aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch b/target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch
new file mode 100644
index 0000000000..f6a0d814be
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.15/950-0575-drivers-bcm2835_isp-Fix-div-by-0-bug.patch
@@ -0,0 +1,23 @@
+From 7861b78bfcd6ac28bd0143af90b2a39136e8e8f8 Mon Sep 17 00:00:00 2001
+From: Naushir Patuck <naush@raspberrypi.com>
+Date: Thu, 25 Nov 2021 08:59:58 +0000
+Subject: [PATCH] drivers: bcm2835_isp: Fix div by 0 bug.
+
+Fix a possible division by 0 bug when setting up the mmal port for the stats
+port.
+
+Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
+---
+ drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h
++++ b/drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h
+@@ -544,6 +544,7 @@ static const struct bcm2835_isp_fmt supp
+ .step_size = 2,
+ }, {
+ .fourcc = V4L2_META_FMT_BCM2835_ISP_STATS,
++ .depth = 8,
+ .mmal_fmt = MMAL_ENCODING_BRCM_STATS,
+ /* The rest are not valid fields for stats. */
+ }