Skip to content
Commit 25846fa1 authored by Yangtao Li's avatar Yangtao Li Committed by MyungJoo Ham
Browse files

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: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent a9487917
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment