aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-region.h
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2020-08-31 13:03:06 +0530
committerViresh Kumar <[email protected]>2020-08-31 14:49:47 +0530
commit922ff0759a16299e24cacfc981ac07914d8f1826 (patch)
treef11160f107302a8d10084606450abfafcc0fd2ed /include/linux/fpga/fpga-region.h
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
opp: Don't drop reference for an OPP table that was never parsed
dev_pm_opp_remove_table() should drop a reference to the OPP table only if the DT OPP table was parsed earlier with a call to dev_pm_opp_of_add_table() earlier. Else it may end up dropping the reference to the OPP table, which was added as a result of other calls like dev_pm_opp_set_clkname(). And would hence result in undesirable behavior later on when caller would try to free the resource again. Fixes: 03758d60265c ("opp: Replace list_kref with a local counter") Reported-by: Naresh Kamboju <[email protected]> Reported-by: Anders Roxell <[email protected]> Tested-by: Naresh Kamboju <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-region.h')
0 files changed, 0 insertions, 0 deletions