]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
of: unittest: Unlock on error in unittest_data_add()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 30 Apr 2025 08:05:40 +0000 (11:05 +0300)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 9 May 2025 22:26:40 +0000 (17:26 -0500)
commit493e6cb63a21e9f009dc4c209fd311f2bb777656
tree7ceb2351fe8a6fa2f9afe197eaa288978eec4e27
parent1b765f8bdac2a69602fccc9d069574428338fb43
of: unittest: Unlock on error in unittest_data_add()

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@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/aBHZ1DvXiBcZkWmk@stanley.mountain
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/unittest.c