Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3486975imu; Sun, 11 Nov 2018 16:12:11 -0800 (PST) X-Google-Smtp-Source: AJdET5ddIuKxUJxOPQga5HvQeeotmHldI4na755vUetfsFXMWo38Fh1l1kdr+ZKJCVDH3s90Ihmv X-Received: by 2002:a63:920a:: with SMTP id o10mr15110971pgd.141.1541981531554; Sun, 11 Nov 2018 16:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981531; cv=none; d=google.com; s=arc-20160816; b=SL6OkbJuv7NtCp9nOkc4nfge/f2Uk2lNq4HuSr7su/NO++bycHrCavzr9SOa7fXCaa k3nzNXEno2ZAyTB8bteZUryYGkfIJd1TgekkT/zKhjc1tLHv2gqTGvLoBhuYy5rXWfuJ ASVj8fol1TcHFnJKHOgBkABnKpGBh0zEumYibQyySvoJHz2R8mPPoo27VMd5jsEJRzNC 0OeCbtyfKzZXMcw0/hJRYOwgNFxKC1OO1XPYJnyWJO8MByQCpC7uZshkoizKYPhBI53E PBsq3a3FyaCy9iSrRnuIoNXwzzOLm8KtvtYson+Se+YNBvebNmIGLrXFyuINcJtV/gEG WnKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ln6IDXH87UtNAChP68iqVcrdvEANUyLO5usD4PaeMUQ=; b=HlF/v4M8bSaHfFumTczOZeH8Ug2XyQ9Js0AyXEYmXf5QLVRacb7UtuW0D9SKC/hkXt +9mrd6f6PQsdg/pBlNv0r7JmOqVNFqwmljeJWIdI6hTDa20X/VEWaFS3/u+Z5Lp4Oa2w iQOr/dBAS9koKflook650Vkqu3YeJyg3e5/1tvctVArxRuiLFLERszJbo3TuOvGKL1NI d6mEFazxiD3Xp3habsMx7oDNrYNPCrktiOYJ9p+dAUZSSSA4NZIbAoNlZjYZLcUu1Nc8 q92iAC8TGMfFQ88O+QHgbB3FHgTimA4RUCqMyBA+7wlbVB0a4t5WcDs2fHVijwM1lRNj XqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="NiW/6cHK"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj7-v6si15830416plb.193.2018.11.11.16.11.56; Sun, 11 Nov 2018 16:12:11 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b="NiW/6cHK"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730972AbeKLKCE (ORCPT + 99 others); Mon, 12 Nov 2018 05:02:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:60278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730642AbeKLIRV (ORCPT ); Mon, 12 Nov 2018 03:17:21 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D56CE223AE; Sun, 11 Nov 2018 22:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975245; bh=suxoSd03YNxzAUsnhzjDmh0R3frQ3eKVfuNhmCrDptU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NiW/6cHKwDRDcqfYGH7RXr1ScfkvQlPzyT9wy9TBrKBmJl/zbGLUHgs0cDJe1kRYj jpr12sR6la4bvsj+ObqjkpmRqnMeQo2zboQaqpCg21nAOfGqTMRZHbMqILOP/sj+d1 HFnGxXL++eANEiPisZjhce72hcV/UM61xrQSlu+k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Linus Walleij , Sasha Levin Subject: [PATCH 4.19 098/361] pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux Date: Sun, 11 Nov 2018 14:17:25 -0800 Message-Id: <20181111221633.464567707@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: YueHaibing [ Upstream commit 69f8455f6cc78fa6cdf80d0105d7a748106271dc ] 'ret' should be returned while pmic_mpp_write_mode_ctl fails. Fixes: 0e948042c420 ("pinctrl: qcom: spmi-mpp: Implement support for sink mode") Signed-off-by: YueHaibing Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c @@ -319,6 +319,8 @@ static int pmic_mpp_set_mux(struct pinct pad->function = function; ret = pmic_mpp_write_mode_ctl(state, pad); + if (ret < 0) + return ret; val = pad->is_enabled << PMIC_MPP_REG_MASTER_EN_SHIFT;