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

Commit 41a98bea 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 4f4950af 7dec44d5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1992,6 +1992,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;