regmap: debugfs: Fix more error path regressions
Subsystems (2)
PATCH 1/1 regmap: debugfs: Fix more error path regressions
Many error paths in __regmap_init rely on ret being pre-initialised to -EINVAL, add an extra initialisation in after the new call to regmap_set_name.
--- drivers/base/regmap/regmap.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/base/regmap/regmap.c +2 -0
@@ -723,6 +723,8 @@ struct regmap *__regmap_init(struct device *dev,if (ret) goto err_map; + ret = -EINVAL ;/* Later error paths rely on this */ +if (config->disable_locking) { map->lock = map->unlock = regmap_lock_unlock_none; map->can_sleep = config->can_sleep;
Signature · 1 line
2.11.0
Mark Brown
maintainerQuoted 3 lines · Charles Keepax
Many error paths in
__regmap_initrely on ret being pre-initialised to-EINVAL, add an extra initialisation in after the new call toregmap_set_name.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next
Thanks!
[1/1] regmap: debugfs: Fix more error path regressions
commit: 1d512ee861b80da63cbc501b973c53131aa22f29
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark