diff options
author | Lukasz Luba <lukasz.luba@arm.com> | 2020-08-11 12:17:27 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-08-17 13:54:14 +0200 |
commit | 7f7d9e1e02f0e18275449489425058b639c970dc (patch) | |
tree | 1361cfccc6bb10f4e8004e5227b7d8f36e886784 /drivers/ide/ide-eh.c | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-7f7d9e1e02f0e18275449489425058b639c970dc.tar.xz linux-7f7d9e1e02f0e18275449489425058b639c970dc.zip |
memory: samsung: exynos5422-dmc: Additional locking for 'curr_rate'
The 'curr_rate' is protected by local 'dmc->lock' in various places, but
not in a function exynos5_dmc_get_status(). The lock protects frequency
(and voltage) change process and the corresponding value stored in
'curr_rate'. Add the locking mechanism to protect the 'curr_rate' reading
also in the exynos5_dmc_get_status().
Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20200811101727.3976-1-lukasz.luba@arm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/ide/ide-eh.c')
0 files changed, 0 insertions, 0 deletions