regmap: Fix double unlock in the maple cache
authorMark Brown <broonie@kernel.org>
Mon, 3 Apr 2023 20:02:39 +0000 (21:02 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Apr 2023 11:46:46 +0000 (12:46 +0100)
commit451941ac1ee2be125ac5029593a64b04badaa314
tree5224e09c5b29423a67e642bacbf8059dae55c5a6
parentf033c26de5a5734625d2dd1dc196745fae186f1b
regmap: Fix double unlock in the maple cache

Doing the dance to drop the maple tree's internal spinlock means we need
multiple exit paths in our error handling.

Reported-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230403-regmap-maple-unlock-v1-1-89998991b16c@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache-maple.c