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

Commit b7a9359c authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Prevent heap overflow in uvc driver"

parents e85a24d3 2c6917ed
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2126,6 +2126,9 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,
	if (!found)
		return -ENOENT;

	if (ctrl->info.size < mapping->size)
		return -EINVAL;

	if (mutex_lock_interruptible(&chain->ctrl_mutex))
		return -ERESTARTSYS;