Unverified Commit 1a21e5b9 authored by Paul Cercueil's avatar Paul Cercueil
Browse files

drm/ingenic: Fix leak of device_node pointer



of_graph_get_remote_node() requires of_node_put() to be called on the
device_node pointer when it's no more in use.

Fixes: fc1acf31 ("drm/ingenic: Add support for the IPU")
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827114404.36748-1-paul@crapouillou.net
parent 07b5b12d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -978,6 +978,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
	}

	drm_of_component_match_add(dev, &match, compare_of, np);
	of_node_put(np);

	return component_master_add_with_match(dev, &ingenic_master_ops, match);
}