Searched hist:"11 e1a1648298656722fe206a53e555e2e98668ae" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/opp/ |
H A D | of.c | diff 11e1a1648298656722fe206a53e555e2e98668ae Wed Jul 03 04:33:14 CDT 2019 Viresh Kumar <viresh.kumar@linaro.org> opp: Don't decrement uninitialized list_kref
The list_kref was added for static OPPs and to track their users. The kref is initialized while the static OPPs are added, but removed unconditionally even if the static OPPs were never added. This causes refcount mismatch warnings currently.
Fix that by always initializing the kref when the OPP table is first initialized. The refcount is later incremented only for the second user onwards.
Fixes: d0e8ae6c26da ("OPP: Create separate kref for static OPPs list") Reported-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
|
H A D | core.c | diff 11e1a1648298656722fe206a53e555e2e98668ae Wed Jul 03 04:33:14 CDT 2019 Viresh Kumar <viresh.kumar@linaro.org> opp: Don't decrement uninitialized list_kref
The list_kref was added for static OPPs and to track their users. The kref is initialized while the static OPPs are added, but removed unconditionally even if the static OPPs were never added. This causes refcount mismatch warnings currently.
Fix that by always initializing the kref when the OPP table is first initialized. The refcount is later incremented only for the second user onwards.
Fixes: d0e8ae6c26da ("OPP: Create separate kref for static OPPs list") Reported-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
|