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

Commit 99787c6e authored by Dhaval Patel's avatar Dhaval Patel
Browse files

msm: mdss: Print task name when fb_open fails



Certain process is trying to open the frame buffer node
when target shutdown is in progress. This process keeps
calling fb_open if request fails. Printing name of the process
helps to pinpoint it when user space log is not provided.

Change-Id: I83601d478113a7b8ee78c1ee0e79d91c11e59826
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 526b8cba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1240,9 +1240,11 @@ static int mdss_fb_open(struct fb_info *info, int user)
	struct mdss_fb_proc_info *pinfo = NULL;
	int result;
	int pid = current->tgid;
	struct task_struct *task = current->group_leader;

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