diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-06-28 11:38:26 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-30 12:23:07 +0200 |
commit | 61fd284be8be06db1339ca4c9217f5a13b50074f (patch) | |
tree | b9fd610f396fe04a31fec4d33388984f7856f992 /mm/mempool.c | |
parent | 718a2426e82076e4eddc2a041c8e944c9f9b3e61 (diff) |
soc/tegra: pmc: Ensure mutex is always initialised
The mutex used by the PMC driver may not be initialised if early
initialisation of the driver fails. If this does happen, then it could
be possible for callers of the public PMC functions to still attempt to
acquire the mutex. Fix this by initialising the mutex as soon as
possible to ensure it will always be initialised.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'mm/mempool.c')
0 files changed, 0 insertions, 0 deletions