aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-01-19 11:04:53 -0500
committerMyungJoo Ham <myungjoo.ham@samsung.com>2019-04-16 09:29:18 +0900
commit25846fa1cedada274b65ffd2413378290a60be47 (patch)
treeb51c50d3889bb3599dca01d2bd318a82767f6840 /tools/perf/scripts/python
parenta9487917ba6728dd618ae6d418a7f2197f1b4592 (diff)
PM / devfreq: fix missing check of return value in devfreq_add_device()
devm_kzalloc() could fail, so insert a check of its return value. And if it fails, returns -ENOMEM. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions