From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752509AbcF1MF5 (ORCPT ); Tue, 28 Jun 2016 08:05:57 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34588 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbcF1MFH (ORCPT ); Tue, 28 Jun 2016 08:05:07 -0400 MIME-Version: 1.0 Reply-To: cw00.choi@samsung.com In-Reply-To: <1467112869-30488-2-git-send-email-b.zolnierkie@samsung.com> References: <1467112869-30488-1-git-send-email-b.zolnierkie@samsung.com> <1467112869-30488-2-git-send-email-b.zolnierkie@samsung.com> From: Chanwoo Choi Date: Tue, 28 Jun 2016 21:05:06 +0900 Message-ID: Subject: Re: [PATCH] PM / devfreq: exynos: fix error path in exynos_bus_probe() To: Bartlomiej Zolnierkiewicz Cc: MyungJoo Ham , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , "linux-pm@vger.kernel.org" , linux-samsung-soc , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-06-28 20:21 GMT+09:00 Bartlomiej Zolnierkiewicz : > In case of exynos_bus_parse_of() failure the code shouldn't > try to remove the OPP table and disable+unprepare bus->clk > as it has been already handled in exynos_bus_parse_of(). > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > drivers/devfreq/exynos-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c > index 2363d0a..e946f8f 100644 > --- a/drivers/devfreq/exynos-bus.c > +++ b/drivers/devfreq/exynos-bus.c > @@ -407,7 +407,7 @@ static int exynos_bus_probe(struct platform_device *pdev) > /* Parse the device-tree to get the resource information */ > ret = exynos_bus_parse_of(np, bus); > if (ret < 0) > - goto err; > + return ret; > > profile = devm_kzalloc(dev, sizeof(*profile), GFP_KERNEL); > if (!profile) { > -- > 1.9.1 Acked-by: Chanwoo Choi And, this patch fixes the bug. It should be included in v4.7-rc version. Thanks, Chanwoo Choi