diff options
| author | Viresh Kumar <[email protected]> | 2019-10-18 08:41:58 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2019-10-23 05:28:44 +0000 |
| commit | b19c23551be8de0d4e59fe6af70f10763e3cc595 (patch) | |
| tree | 12a60bb2437dd98fcf9bca3f78e132ec4e0d0a7e /net/unix/af_unix.c | |
| parent | opp: core: Revert "add regulators enable and disable" (diff) | |
| download | kernel-b19c23551be8de0d4e59fe6af70f10763e3cc595.tar.gz kernel-b19c23551be8de0d4e59fe6af70f10763e3cc595.zip | |
opp: Reinitialize the list_kref before adding the static OPPs again
The list_kref reaches a count of 0 when all the static OPPs are removed,
for example when dev_pm_opp_of_cpumask_remove_table() is called, though
the actual OPP table may not get freed as it may still be referenced by
other parts of the kernel, like from a call to
dev_pm_opp_set_supported_hw(). And if we call
dev_pm_opp_of_cpumask_add_table() again at this point, we must
reinitialize the list_kref otherwise the kernel will hit a WARN() in
kref infrastructure for incrementing a kref with value 0.
Fixes: 11e1a1648298 ("opp: Don't decrement uninitialized list_kref")
Reported-by: Dmitry Osipenko <[email protected]>
Tested-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
