Fixes: f52e85dbaa91 ("media: rc: read out of bounds if bpf reports high protocol number") Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx> --- rc-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index a24850b..ca68e1d 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -679,7 +679,7 @@ static void ir_timer_repeat(struct timer_list *t) spin_unlock_irqrestore(&dev->keylock, flags); } -unsigned int repeat_period(int protocol) +static unsigned int repeat_period(int protocol) { if (protocol >= ARRAY_SIZE(protocols)) return 100;