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

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

parents a0194593 b125beb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -982,7 +982,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)