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

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

Merge "diag: Set real time value correctly"

parents b8de5298 891ae449
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1096,7 +1096,6 @@ static int diag_ioctl_vote_real_time(unsigned long ioarg)
static int diag_ioctl_get_real_time(unsigned long ioarg)
{
	int result = -EINVAL;
	int real_time = 0;
	int retry_count = 0;
	int timer = 0;
	struct real_time_query_t rt_query;
@@ -1121,7 +1120,8 @@ static int diag_ioctl_get_real_time(unsigned long ioarg)
				       rt_query.proc, __func__);
				return -EINVAL;
			}
			real_time = driver->real_time_mode[rt_query.proc];
			rt_query.real_time =
				driver->real_time_mode[rt_query.proc];
			if (copy_to_user((void __user *)ioarg, &rt_query,
				sizeof(struct real_time_query_t)))
				return -EFAULT;