]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add locking to debugfs regulator_summary
authorDouglas Anderson <dianders@chromium.org>
Thu, 16 Aug 2018 20:28:03 +0000 (13:28 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 28 Aug 2018 20:10:23 +0000 (21:10 +0100)
commit344b013f002ed4290ecc5f38123927c81012eb9b
tree422533b4d3a8a905f2217c312ba7b5b52598b44c
parent6a9d2d52caf9a30caadac32df712a2d8332f4809
regulator: core: Add locking to debugfs regulator_summary

Most functions that access the rdev lock the rdev mutex before looking
at data.  ...but not the code that implements the debugfs
regulator_summary.  It probably should though, so let's do it.

Note: this fixes no known issues.  The problem was found only by code
inspection.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c