[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190121012750epcms1p1b3fae992e1ae0f83c1d530feae02104c@epcms1p1>
Date: Mon, 21 Jan 2019 10:27:50 +0900
From: MyungJoo Ham <myungjoo.ham@...sung.com>
To: Kyungmin Park <kyungmin.park@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Yangtao Li <tiny.windzz@...il.com>
Subject: RE: [PATCH 2/3] 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@...il.com>
>---
> drivers/devfreq/devfreq.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
>index 076b1c2f40a4..923889229a0b 100644
>--- a/drivers/devfreq/devfreq.c
>+++ b/drivers/devfreq/devfreq.c
Acked-by: MyungJoo Ham <myungjoo.ham@...sung.com>
Powered by blists - more mailing lists