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

Commit 14bb28b0 authored by Archit Taneja's avatar Archit Taneja Committed by Rob Clark
Browse files

drm/msm: dsi host: add missing of_node_put()



Decrement device node refcount if of_get_child_by_name is successfully
called.

Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 78b1d470
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1605,9 +1605,13 @@ int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer)
			node = of_get_child_by_name(msm_host->pdev->dev.of_node,
							"panel");
			if (node) {
				if (!of_drm_find_panel(node))
				if (!of_drm_find_panel(node)) {
					of_node_put(node);
					return -EPROBE_DEFER;
				}

				of_node_put(node);
			}
		}
	}