From patchwork Thu Nov 5 08:51:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 56025 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp278610lbr; Thu, 5 Nov 2015 00:51:51 -0800 (PST) X-Received: by 10.66.234.101 with SMTP id ud5mr8090727pac.136.1446713506512; Thu, 05 Nov 2015 00:51:46 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gu5si8576532pbc.252.2015.11.05.00.51.46; Thu, 05 Nov 2015 00:51:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 S1033023AbbKEIvo (ORCPT + 2 others); Thu, 5 Nov 2015 03:51:44 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34666 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030995AbbKEIvm (ORCPT ); Thu, 5 Nov 2015 03:51:42 -0500 Received: by padhx2 with SMTP id hx2so73533424pad.1 for ; Thu, 05 Nov 2015 00:51:42 -0800 (PST) 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 :in-reply-to:references; bh=byMupTROw5GMBJoTnHANX08+M9TH7wFhnTmpZEP78Zo=; b=d/kssBbm6+BVft17llJWp5bwDhcwUocI8QIMhB+jBxcNwBjojAVdlHHe+VSFvpmH1E Y9AhdZKELXpftqCOt5Ro0/2KxQQNAIPHPXlDcYFWBKF0T12ZPa681R4Utv3wu3+M6wBD kgXUE8JUaEeEo0Yj0Xm6zgYv/rJt9dBBTCQ1DsiMKSvLa7B3BEC5OAW9E6vg4kV2vRND 5DsfnaVBM+0RC4SDbYboflAy08YNYQyuAYAZO+kLx5ZP7nsQPvnWA90alCq6CJj0KTvk jFmQ8GH4vh/xxaHO9Fo+YCZuniLbOwSbDobfJESxJ774GhPG1bywLFdr48F1uNx8MZtr RNxg== 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:in-reply-to:references; bh=byMupTROw5GMBJoTnHANX08+M9TH7wFhnTmpZEP78Zo=; b=jwPAWpGpsOpf03dVcZp1g1s4+AenqH/cU+RR3RY9gRQc9oqH3pOlmmjmcKEPbbdwCE o/iM9QVJEzMkHWJY8bfa6zYGcl8HTJauTi6XZAoIi60mxcN9+j3mWcz2UT5C6jPxa++0 4QPleELjLvHvzx/JxHY6EOlMDe4VVv1m0+jvHyH+quRgXlS1wBv4IbfejcOniPi7vh6R RxzGwLSZAKCgBXYQxLjKs93VI8EdYjWUfdsUT+TA8iqwly37Bw3mhTJx5t3Rg4ssGcND 4/zuE448ZOBdfduqWZ3216VSt7no6tmrW3A6eOju+QV/TZTtn49Yskw+xtCKaeEhrie9 IztA== X-Gm-Message-State: ALoCoQmhskTMGun4jezxhyH2R5wUSdqGBSTTCtpSYyrGnC/U3HqcmW9+n/J7hd/DgPniPP/O47sr X-Received: by 10.66.220.33 with SMTP id pt1mr8036114pac.71.1446713502283; Thu, 05 Nov 2015 00:51:42 -0800 (PST) Received: from localhost ([122.172.111.169]) by smtp.gmail.com with ESMTPSA id bz2sm6522822pad.32.2015.11.05.00.51.40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Nov 2015 00:51:41 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Stephen Boyd Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , "4 . 3 # 4 . 3" , Dan Carpenter , Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Len Brown , linux-kernel@vger.kernel.org (open list), Pavel Machek Subject: [PATCH V2 1/4] PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus() Date: Thu, 5 Nov 2015 14:21:18 +0530 Message-Id: <2cd8d43a1affb10b0aabd80941b6aa6c96eff626.1446713282.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.6.2.198.g614a2ac In-Reply-To: References: In-Reply-To: References: Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org We are returning 0 even in case of errors, fix it. Cc: 4.3 # 4.3 Fixes: 8d4d4e98acd6 ("PM / OPP: Add helpers for initializing CPU OPPs") Reported-by: Dan Carpenter Reviewed-by: Stephen Boyd 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 stable" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index c27a1cdffec9..2139c9d4c447 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -156,7 +156,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) out_rcu_read_unlock: rcu_read_unlock(); - return 0; + return ret; } EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);