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

Commit 3e89ada3 authored by bait_dispatcher_monitor_system's avatar bait_dispatcher_monitor_system Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: prevent excessive logging after shutdown requested"

parents 700e0c78 5a0661f8
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -2168,8 +2168,9 @@ static int mdss_fb_open(struct fb_info *info, int user)
	struct task_struct *task = current->group_leader;
	struct task_struct *task = current->group_leader;


	if (mfd->shutdown_pending) {
	if (mfd->shutdown_pending) {
		pr_err("Shutdown pending. Aborting operation. Request from pid:%d name=%s\n",
		pr_err_once("Shutdown pending. Aborting operation. Request from pid:%d name=%s\n",
			pid, task->comm);
			pid, task->comm);
		sysfs_notify(&mfd->fbi->dev->kobj, NULL, "show_blank_event");
		return -EPERM;
		return -EPERM;
	}
	}


@@ -2247,8 +2248,8 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
	struct task_struct *task = current->group_leader;
	struct task_struct *task = current->group_leader;


	if (!mfd->ref_cnt) {
	if (!mfd->ref_cnt) {
		pr_info("try to close unopened fb %d! from %s\n", mfd->index,
		pr_info("try to close unopened fb %d! from pid:%d name:%s\n",
			task->comm);
			mfd->index, pid, task->comm);
		return -EINVAL;
		return -EINVAL;
	}
	}