Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33acc40d authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Rob Herring
Browse files

of: unittest: Remove bogus overlay mutex release from overlay_data_add()



overlay_data_add() never takes the special overlay mutex, so it must not
be released in the error patch.

Presumably the call to of_overlay_mutex_unlock() is a relic from v1 of
the patch.

Fixes: f948d6d8 ("of: overlay: avoid race condition between applying multiple overlays")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarFrank Rowand <frank.rowand@sony.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 4fbd8d19
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -2165,7 +2165,6 @@ static int __init overlay_data_add(int onum)
	ret = of_overlay_apply(info->np_overlay, &info->overlay_id);
	ret = of_overlay_apply(info->np_overlay, &info->overlay_id);
	if (ret < 0) {
	if (ret < 0) {
		pr_err("of_overlay_apply() (ret=%d), %d\n", ret, onum);
		pr_err("of_overlay_apply() (ret=%d), %d\n", ret, onum);
		of_overlay_mutex_unlock();
		goto out_free_np_overlay;
		goto out_free_np_overlay;
	}
	}