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

Commit b11b9665 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

ion: msm: Prevent log-spam from ION dmabuf mmap failures



Use rate-limited prints when an ION buffer should not be
mapped to userspace. This prevents the kernel logs from being
flooded by failures triggered by continuous userspace requests
to map a buffer that should not be mapped to it.

Change-Id: I5f4a1bc1fab7424588e68a55cb18aa28e969841c
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 2e94d445
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ static int msm_ion_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
	int ret = 0;

	if (!hlos_accessible_buffer(buffer)) {
		pr_err("%s: this buffer cannot be mapped to userspace\n",
		pr_err_ratelimited("%s: this buffer cannot be mapped to userspace\n",
				   __func__);
		return -EINVAL;
	}