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)
commit7e4d9683d6a716533f5c5026795b7b1ebdbcb2ed
tree422533b4d3a8a905f2217c312ba7b5b52598b44c
parent7d3827b5954840ff7765aef282257b7368b5ea67
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