Re: [RESEND PATCH v2 14/16] clk: make sure parent is not NULL in clk_fetch_parent_index()
From: Stephen Boyd
Date: Mon Feb 01 2016 - 20:08:34 EST
On 12/28, Masahiro Yamada wrote:
> If parent is given with NULL, clk_fetch_parent_index() could return
> a positive index value.
>
> Currently, parent is checked by the callers of this function, but
> it would be safer to do it in this function.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project