Received: by 10.223.164.221 with SMTP id h29csp102407wrb; Fri, 27 Oct 2017 15:17:24 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SziSIZ1COp/29egiuLO4lDoCMM/uL9lyKzMFK2MyX6BjA44U1AW54Rt2jO6pp88yCvcKvY X-Received: by 10.84.136.36 with SMTP id 33mr1452606plk.108.1509142644149; Fri, 27 Oct 2017 15:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509142644; cv=none; d=google.com; s=arc-20160816; b=deQrE41XYm3RWa/PVdyh1izzLSeetzupMB5Y4PPUa4Z6EGnJgB8vD5Ob4RGb0bErbT SQcirKD/a+R1Z6OBsthCWKlnqDRDxKgyynFllFbNS2b4AJA2IYD1KVIzQMk4xqJ5JHVv WVPMvr4dMx1YN52pS4UIhNXejmKD/kVGqP8fdI5DBx9snt4UDFnzoAd/syk32FHW8KTU FK089q0ahnktcXKckErBsDc/nWusffbkTzRjCWxdQ/YDJg9M+x2hxNeAi5WYfqX66Tx8 h5tDkx+GLwp8v8sb4GhasOdJqIJqUFTegCB0DH4IAUakdKOUJTtL0njSmRq27B2Ifz2f 9Kpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rALwSr9cXFLIx7/Vgyd1/CCaJWptSknzGfWaXI/Wrv0=; b=iR/ZGVbhhs0IANnoi+SebMo7cnydukW5pgK3JZU6flxS7sPQa9VecMlR9E0s/2zgen Zb+e6YcLp2GjcdMArqP5qWNPb3vjlJQS/ssFeE/iB/CISGX9enCRnTBT6Xdgxs1Ozav7 3W/Xy0sSA/56VoKVI/qm2YCVKUZFppD9vEmu8fop8YLvXr0GRKQI+96GCynp9+ZTnADy aGtitU3wvPNWiJ2X0wTz2sk24alZPXDNO2WVMqcVhKZ4HsbilrquyG5gCiSVU1LPcjok 8NKOO32lahpsHnkumxOSwNY/TEDsnIuHPNHGtj933RLUySGfj1Sd/vJUVhvAa+4UZONZ +A9Q== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si4872059plr.395.2017.10.27.15.16.56; Fri, 27 Oct 2017 15:17:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbdJ0WPt (ORCPT + 99 others); Fri, 27 Oct 2017 18:15:49 -0400 Received: from mail.ispras.ru ([83.149.199.45]:56846 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbdJ0WPr (ORCPT ); Fri, 27 Oct 2017 18:15:47 -0400 Received: from localhost.localdomain (ppp85-140-187-163.pppoe.mtu-net.ru [85.140.187.163]) by mail.ispras.ru (Postfix) with ESMTPSA id 839E854006C; Sat, 28 Oct 2017 01:15:45 +0300 (MSK) From: Alexey Khoroshilov To: Kishon Vijay Abraham I , Vivek Gautam , Stephen Boyd Cc: Alexey Khoroshilov , linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: [PATCH] phy: qcom-usb: Fix error handling in qcom_usb_hsic_phy_power_on() Date: Sat, 28 Oct 2017 01:15:36 +0300 Message-Id: <1509142536-14503-1-git-send-email-khoroshilov@ispras.ru> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a misprint in error handling of pinctrl_lookup_state(), where qcom_usb_hsic_phy_power_on() does return instead of goto err_ulpi. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/phy/qualcomm/phy-qcom-usb-hsic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-usb-hsic.c b/drivers/phy/qualcomm/phy-qcom-usb-hsic.c index c110563a73cb..00926df4bc5b 100644 --- a/drivers/phy/qualcomm/phy-qcom-usb-hsic.c +++ b/drivers/phy/qualcomm/phy-qcom-usb-hsic.c @@ -57,8 +57,10 @@ static int qcom_usb_hsic_phy_power_on(struct phy *phy) /* Configure pins for HSIC functionality */ pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); - if (IS_ERR(pins_default)) - return PTR_ERR(pins_default); + if (IS_ERR(pins_default)) { + ret = PTR_ERR(pins_default); + goto err_ulpi; + } ret = pinctrl_select_state(uphy->pctl, pins_default); if (ret) -- 2.7.4 From 1591071755062024045@xxx Wed Jan 31 02:04:28 +0000 2018 X-GM-THRID: 1583463745955685366 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-01