Skip to content

Commit 19359ba

Browse files
naushirpelwell
authored andcommitted
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 <[email protected]>
1 parent 858f43f commit 19359ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ static const struct bcm2835_isp_fmt supported_formats[] = {
544544
.step_size = 2,
545545
}, {
546546
.fourcc = V4L2_META_FMT_BCM2835_ISP_STATS,
547+
.depth = 8,
547548
.mmal_fmt = MMAL_ENCODING_BRCM_STATS,
548549
/* The rest are not valid fields for stats. */
549550
}

0 commit comments

Comments
 (0)