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

Commit 8470ba7f authored by Shivendra Kakrania's avatar Shivendra Kakrania
Browse files

media: v4l2-core: 32 bit to 64 bit v4l2-compat changes



Additional changes needed for running 32 bit app on top of
Ibd9486e6f8be9673b381f86d69fafa081c8f2539 change.

CRs-Fixed: 2201201
Change-Id: I074ead5bbcda84e7be4a9dd11d80d2dd8e8975c6
Signed-off-by: default avatarShivendra Kakrania <shiven@codeaurora.org>
parent d8e908c9
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -398,7 +398,11 @@ static int get_v4l2_plane32(struct v4l2_plane __user *up,

	if (copy_in_user(up, up32, 2 * sizeof(__u32)) ||
	    copy_in_user(&up->data_offset, &up32->data_offset,
			 sizeof(up->data_offset)))
			 sizeof(up->data_offset)) ||
	    copy_in_user(up->reserved, up32->reserved,
			 sizeof(up->reserved)) ||
	    copy_in_user(&up->length, &up32->length,
			 sizeof(up->length)))
		return -EFAULT;

	switch (memory) {
@@ -430,7 +434,9 @@ static int put_v4l2_plane32(struct v4l2_plane __user *up,

	if (copy_in_user(up32, up, 2 * sizeof(__u32)) ||
	    copy_in_user(&up32->data_offset, &up->data_offset,
			 sizeof(up->data_offset)))
			 sizeof(up->data_offset)) ||
	    copy_in_user(up32->reserved, up->reserved,
			 sizeof(up->reserved)))
		return -EFAULT;

	switch (memory) {