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

Commit cd4765ef authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (6265): Prevent for calling mmap_free without an allocated buffer

parent 3bef5e4a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -880,6 +880,9 @@ int videobuf_mmap_free(struct videobuf_queue *q)
	int i;
	int i;
	int rc;
	int rc;


	if (!q)
		return 0;

	MAGIC_CHECK(q->int_ops->magic,MAGIC_QTYPE_OPS);
	MAGIC_CHECK(q->int_ops->magic,MAGIC_QTYPE_OPS);


	rc  = CALL(q,mmap_free,q);
	rc  = CALL(q,mmap_free,q);