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

!12400 drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error

parents 059a9aa2 1e58f42b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -983,7 +983,7 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid,
		index, pid, onoff, dev->slave_ts);

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

	if (onoff)