commit | 25846fa1cedada274b65ffd2413378290a60be47 | [log] [tgz] |
---|---|---|
author | Yangtao Li <tiny.windzz@gmail.com> | Sat Jan 19 11:04:53 2019 -0500 |
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | Tue Apr 16 09:29:18 2019 +0900 |
tree | b51c50d3889bb3599dca01d2bd318a82767f6840 | |
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>