Re: [PATCH] of: unittest: Unlock on error in unittest_data_add()
From: Rob Herring (Arm)
Date: Fri May 09 2025 - 15:34:06 EST
On Wed, 30 Apr 2025 11:05:40 +0300, Dan Carpenter wrote:
> 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>
> ---
> drivers/of/unittest.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
Applied, thanks!