diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index be3fa1ac4261..8f6dfa6b6e4d 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -280,6 +280,9 @@ static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) } mutex_unlock(&icc_lock); + if (!node) + return ERR_PTR(-EINVAL); + return node; }