Unverified Commit 477dce52 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15079 drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error

parents 83b361e2 a1f7a27e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ static int rtl2830_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid, int on
		index, pid, onoff);

	/* skip invalid PIDs (0x2000) */
	if (pid > 0x1fff || index > 32)
	if (pid > 0x1fff || index >= 32)
		return 0;

	if (onoff)