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

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

Merge "msm: mdss: Change notify_update ioctl copy size to match ioctl definition"

parents e61bf1c5 64095bee
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -143,9 +143,9 @@ static int mdss_fb_notify_update(struct msm_fb_data_type *mfd,
							unsigned long *argp)
{
	int ret;
	unsigned long notify = 0x0, to_user = 0x0;
	unsigned int notify = 0x0, to_user = 0x0;

	ret = copy_from_user(&notify, argp, sizeof(unsigned long));
	ret = copy_from_user(&notify, argp, sizeof(unsigned int));
	if (ret) {
		pr_err("%s:ioctl failed\n", __func__);
		return ret;
@@ -195,7 +195,7 @@ static int mdss_fb_notify_update(struct msm_fb_data_type *mfd,
	if (ret == 0)
		ret = -ETIMEDOUT;
	else if (ret > 0)
		ret = copy_to_user(argp, &to_user, sizeof(unsigned long));
		ret = copy_to_user(argp, &to_user, sizeof(unsigned int));
	return ret;
}