[PATCH] clk: samsung: Initialize clock table with error pointers

Sylwester Nawrocki sylvester.nawrocki at gmail.com
Thu Feb 6 17:21:54 EST 2014


On 02/06/2014 07:33 PM, Tomasz Figa wrote:
> Before this patch, the driver was simply zeroing the clock table, which
> is incorrect, because invalid clock numbers returned NULL instead of
> error pointers. This patch fixes this by changing the driver to
> initialize the array with PTR_ERR(-ENOENT).
>
> Signed-off-by: Tomasz Figa<t.figa at samsung.com>
> Acked-by: Kyungmin Park<kyungmin.park at samsung.com>

Reviewed-by: Sylwester Nawrocki <s.nawrocki at samsung.com>



More information about the linux-arm-kernel mailing list