diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2019-01-19 11:04:53 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2019-04-16 09:29:18 +0900 |
commit | 25846fa1cedada274b65ffd2413378290a60be47 (patch) | |
tree | b51c50d3889bb3599dca01d2bd318a82767f6840 /tools/perf/scripts/python/intel-pt-events.py | |
parent | a9487917ba6728dd618ae6d418a7f2197f1b4592 (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/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions