Skip to content

clk: Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name

Alessandro Carminati requested to merge acarmina/centos-stream-9:ac-clk into main

JIRA: https://issues.redhat.com/browse/RHEL-15417

The task at hand involves backporting an existing code change from the upstream kernel to our downstream kernel. This change addresses the issue of handling the return value from of_clk_get_parent_name in the possible_parent_show function to prevent potential kernel panics resulting from a NULL return.

Signed-off-by: Alessandro Carminati acarmina@redhat.com

Edited by Alessandro Carminati

Merge request reports