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

Commit de7bc1be authored by Sandeep Panda's avatar Sandeep Panda
Browse files

drm/msm/dsi-staging: fix mem leak issue in ESD debugfs



There is a potential memory leak in ESD debugfs implementation,
in case if panel ESD trigger fails. This change fixes the same.

Change-Id: I6a136aad71aa5561709d539afc13d6591bc50d1f
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent b851c923
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1163,7 +1163,7 @@ static ssize_t debugfs_esd_trigger_check(struct file *file,
		rc = dsi_panel_trigger_esd_attack(display->panel);
		if (rc) {
			pr_err("Failed to trigger ESD attack\n");
			return rc;
			goto error;
		}
	}