aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2019-07-03 15:03:14 +0530
committerViresh Kumar <[email protected]>2019-07-26 13:25:52 +0530
commit11e1a1648298656722fe206a53e555e2e98668ae (patch)
tree09baf01360b13b1cc995c8620b0b5c51af52bc5d /scripts/gcc-plugins/cyc_complexity_plugin.c
parent71419d84c216cee8da3b19fb843b4242f112cde4 (diff)
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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions