[PATCH] clk: versatile: clk-icst: use after free on error path

Linus Walleij linus.walleij at linaro.org
Sun Nov 21 15:37:40 PST 2021


On Wed, Nov 17, 2021 at 8:26 AM Dan Carpenter <dan.carpenter at oracle.com> wrote:

> This frees "name" and then tries to display in as part of the error
> message on the next line.  Swap the order.
>
> Fixes: 1b2189f3aa50 ("clk: versatile: clk-icst: Ensure clock names are unique")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list