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

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

Merge "Prevent heap overflow in uvc driver"

parents 0b048487 bbd95b50
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1991,6 +1991,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;