diff options
| author | Yangtao Li <[email protected]> | 2019-01-19 16:04:53 +0000 |
|---|---|---|
| committer | MyungJoo Ham <[email protected]> | 2019-04-16 00:29:18 +0000 |
| commit | 25846fa1cedada274b65ffd2413378290a60be47 (patch) | |
| tree | b51c50d3889bb3599dca01d2bd318a82767f6840 /tools/perf/scripts/python | |
| parent | PM / devfreq: fix mem leak in devfreq_add_device() (diff) | |
| download | kernel-25846fa1cedada274b65ffd2413378290a60be47.tar.gz kernel-25846fa1cedada274b65ffd2413378290a60be47.zip | |
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 <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
