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

Commit 593d5a19 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: avoid flagging error for retire fence fd"

parents 1d0712e6 4b8f8a83
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -133,8 +133,13 @@ static int mdss_fb_compat_buf_sync(struct fb_info *info, unsigned int cmd,
		return -EFAULT;
	if (copy_in_user(compat_ptr(buf_sync32->retire_fen_fd),
			buf_sync->retire_fen_fd,
			sizeof(int)))
			sizeof(int))) {
		if (buf_sync->flags & MDP_BUF_SYNC_FLAG_RETIRE_FENCE)
			return -EFAULT;
		else
			pr_debug("%s: no retire fence fd for wb\n",
				__func__);
	}

	return ret;
}