DF-1600 / fix.diff
diff --git a/sys/dev/video/bktr/msp34xx.c b/sys/dev/video/bktr/msp34xx.c --- a/sys/dev/video/bktr/msp34xx.c +++ b/sys/dev/video/bktr/msp34xx.c @@ -807,7 +807,8 @@ } /* programm the msp3400 according to the results */ - msp->main = carrier_detect_main[max1].cdo; + if (max1 < 0 || max1 >= nitems(carrier_detect_main)) max1 = 0; + msp->main = carrier_detect_main[max1].cdo; switch (max1) { case 1: /* 5.5 */ if (max2 == 0) { |