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

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

parents 8858a237 2d2114ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -619,7 +619,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)