Re: [PATCH] of: unittest: Unlock on error in unittest_data_add()

From: Stephen Boyd
Date: Thu May 08 2025 - 14:27:16 EST


Quoting Dan Carpenter (2025-04-30 01:05:40)
> The of_overlay_mutex_unlock() was accidentally deleted if "of_root" is
> NULL. Change this to a goto unlock.
>
> Fixes: d1eabd218ede ("of: unittest: treat missing of_root as error instead of fixing up")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---

Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxx>