]> git.baikalelectronics.ru Git - kernel.git/commit
of: unittest: Remove bogus overlay mutex release from overlay_data_add()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Nov 2017 14:46:27 +0000 (15:46 +0100)
committerRob Herring <robh@kernel.org>
Wed, 6 Dec 2017 20:56:32 +0000 (14:56 -0600)
commitcc6db9eda7076dd07a282e26bcfaee2b771efeb5
tree1094bef8f1c3d20a40baf4e94173adf6dec1201c
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
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: f7e2aa3a465521c1 ("of: overlay: avoid race condition between applying multiple overlays")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c