diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2019-01-19 19:04:53 +0300 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2019-04-16 03:29:18 +0300 |
commit | 25846fa1cedada274b65ffd2413378290a60be47 (patch) | |
tree | b51c50d3889bb3599dca01d2bd318a82767f6840 /scripts/gen_compile_commands.py | |
parent | a9487917ba6728dd618ae6d418a7f2197f1b4592 (diff) | |
download | linux-25846fa1cedada274b65ffd2413378290a60be47.tar.xz |
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 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions