Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce8cdfee authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "media: dvb-core: Fix possible array index access error"

parents 4668f7e2 ab460e7f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4028,6 +4028,9 @@ static ssize_t dvb_dmxdev_read_sec(struct dmxdev_filter *dfil,
		hcount = 3 + dfil->todo;
		if (hcount > count)
			hcount = count;
		if (hcount == 0)
			return done;

		result = dvb_dmxdev_buffer_read(dfil, &dfil->buffer,
						file->f_flags & O_NONBLOCK,
						buf, hcount, ppos);