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

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

Merge "[media] v4l2-ioctl.c: Copy userptr for multiplanar buffers"

parents 01765195 0459c65a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -382,6 +382,10 @@ static int put_v4l2_plane32(struct v4l2_plane __user *up, struct v4l2_plane32 __
		if (copy_in_user(&up32->m.fd, &up->m.fd,
					sizeof(int)))
			return -EFAULT;
	if (memory == V4L2_MEMORY_USERPTR)
		if (copy_in_user(&up32->m.userptr, &up->m.userptr,
					sizeof(compat_long_t)))
			return -EFAULT;

	return 0;
}