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

Commit 0bef29f2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: fix bad pointer dereference in dsi_ctrl_get"

parents 38a1e21a 51668e46
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1666,7 +1666,9 @@ struct dsi_ctrl *dsi_ctrl_get(struct device_node *of_node)
	mutex_lock(&ctrl->ctrl_lock);
	if (ctrl->refcount == 1) {
		pr_err("[%s] Device in use\n", ctrl->name);
		mutex_unlock(&ctrl->ctrl_lock);
		ctrl = ERR_PTR(-EBUSY);
		return ctrl;
	} else {
		ctrl->refcount++;
	}