From patchwork Fri Oct 30 12:40:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 55832 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp1190543lbr; Fri, 30 Oct 2015 05:40:53 -0700 (PDT) X-Received: by 10.202.52.5 with SMTP id b5mr5244781oia.120.1446208853737; Fri, 30 Oct 2015 05:40:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si4198586obr.36.2015.10.30.05.40.53; Fri, 30 Oct 2015 05:40:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753480AbbJ3Mkv (ORCPT + 28 others); Fri, 30 Oct 2015 08:40:51 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33157 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753242AbbJ3Mkt (ORCPT ); Fri, 30 Oct 2015 08:40:49 -0400 Received: by padhy1 with SMTP id hy1so67915505pad.0 for ; Fri, 30 Oct 2015 05:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m2oRYfCrSTHtg6UOV/JxC8mfcOtXEQLHgzhSiIFbzZg=; b=MTyUUroKKsow2xqzK/Cf5tcnbhhHfJMOJT1Jn72igRf7vGdZly8ek66osL3ZsLUwQ+ ZRRz5uLhGqg1oNyaWXGhdLirKrxs0o43SyKRr3C0GItGZBzu1dWB8x1NzfDVztAm0TwZ GrJMt1gOp9t5rUr4GuiMJgsJFCDX3XWZNGEsIStdnqqexoeoOTqdwbMl73tfsTYrVCWE HdCHz+Dq/GIJGUP8lGnqrdwpTuqZqfP8djGIueWWpyRhfF5uQgQgg9tQWaydlkYEZGN+ xWXU5K839g/hV0PfK/z59hL4nUlhyC8J4ML1tqAFlGE4nwEK2RmVlfYrQCC89Ty4LtIp Uqzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=m2oRYfCrSTHtg6UOV/JxC8mfcOtXEQLHgzhSiIFbzZg=; b=dvc3sEfa6vYSf7tKzr/+wzu2PhNod0eYr6kW+PPIQpmGaxqAHgwADud3NcIKgHv5qH 5Oy/Sc7f88D663gNdvjU5izSUs40sJVudde4biPRyYNsq3bUQLhvgb1KopVORFpRUk9k g+r/K5IHSlrrgZnV0wzd5JAcbpOtDvaHI2/y/dnllNewRMTks8UjA8QN0BUL/gLgj8bU vPcoxwJUsLkKoXM9sRr21/uEqrOh17S3rHPP/7OLk16ME4Sj4PFCtGdIQ85vUGRA2ol6 Jg24XxE0ma6JJ4JJZRG3FXE3owvKDw6/66IolJfIQC92/3RpZHVG4JkOx/qSGqbUS0bZ YPWg== X-Gm-Message-State: ALoCoQm6m1vLXnQqJXHP344/TEbGX8SPZbenAMyOJC5ec9Qnlm/OxJwmH7/ZZCZoOk/Bg2sDuerN X-Received: by 10.68.68.167 with SMTP id x7mr8553688pbt.140.1446208849167; Fri, 30 Oct 2015 05:40:49 -0700 (PDT) Received: from localhost ([122.172.111.169]) by smtp.gmail.com with ESMTPSA id po4sm8065231pbb.64.2015.10.30.05.40.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 30 Oct 2015 05:40:48 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , Dan Carpenter , Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Len Brown , linux-kernel@vger.kernel.org (open list), Pavel Machek , Stephen Boyd Subject: [PATCH] PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus() Date: Fri, 30 Oct 2015 18:10:28 +0530 Message-Id: X-Mailer: git-send-email 2.6.2.198.g614a2ac In-Reply-To: <20151030120450.GH7289@mwanda> References: <20151030120450.GH7289@mwanda> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are returning 0 even in case of errors, fix it. Fixes: 8d4d4e98acd6 ("PM / OPP: Add helpers for initializing CPU OPPs") Reported-by: Dan Carpenter Signed-off-by: Viresh Kumar --- drivers/base/power/opp/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.6.2.198.g614a2ac -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index 91f15b2e25ee..2122543e769d 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -153,7 +153,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) unlock: mutex_unlock(&dev_opp_list_lock); - return 0; + return ret; } EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);