Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4597864pxj; Wed, 12 May 2021 08:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztUribS0Kz5+hWWphftMO4ndjOVQ8S8fe8y9pZ9geuP51dNp2S7K/BLKFTWoqrGEI9pF1R X-Received: by 2002:ac2:59c4:: with SMTP id x4mr24441424lfn.519.1620835107242; Wed, 12 May 2021 08:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835107; cv=none; d=google.com; s=arc-20160816; b=W7ZsYvwnY6NNh30R57e7UNk28oR4xrKxAqacytjhZoXTRAucskkzrwq9f14tBQMCWy JtO8ZRaMLGGm4dPGaZJq3iTpocNpx5rciJwI5vpslwcCb8f4yqnq1RS3h3jXMPqFbpuT EkUqMNPBcfxWykfmsj8/DZ+2fZwJYKiq7MkLEWzR14HpSdDPLC/Xomre9fWMVYOJLLtA K42JlxkZ8xuofbj0VgbqLGpck5tKipnTH/M4ydSpRnhIZ7kYF29Z1mpvSTrr0K2P5giM ARYiFuXhGH3D9ADoGSwGqNQOzGkmV7At3B9URI5hylNZbORzQV0U05m0fGFsjq1iosP0 fnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z5SqkPxj7wLhiwW3eR7xrejHlddyl6bUzO/1KV1kyqo=; b=M+qsS8OY4HNnUNspohI4EWZQiKhuVsNukkpDUoxZPooIq4qaN5t8M3SXmCNLhmilHP AGQoXoKLHY0oUM4YTJ/inp/u67xTWKu3LwR0GcE2XSytjBWmeHdVfTgmkVu12dW/8YR+ 6NT9/UJabmmuhGucYUuln8dWOnluuAbByQUHpLlTmtWYvCpl0SCu+TpMY7oQml3l8occ IJAjU6qK+Ddb5/Pr5AGEFrRhuZ2Zae2lFDfR4mlUsD/vUh41T53XGOXUME3z2OmbWFAT 6gPfrBp/vUjL1YI+wQed//Zx1118IbejySHpfSPAgF9dvD85oEhrKG3hEbblAqnoZfrl wzVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u8W1zZgy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si299003lfl.164.2021.05.12.08.57.56; Wed, 12 May 2021 08:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u8W1zZgy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236064AbhELPzD (ORCPT + 99 others); Wed, 12 May 2021 11:55:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:40502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235054AbhELP0e (ORCPT ); Wed, 12 May 2021 11:26:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2C62619D4; Wed, 12 May 2021 15:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832281; bh=b4tjev51cSKqGw54bwJ5wI4hqQEnnqav/328yhgz6BY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u8W1zZgy8MvZGkzn8d7WDYvepLX8jppeaAh6cOhqkZXdsysb1jA9mGB5Ko/eoImVE U2U47XEu+2Ai0wAmd6doJaoBlRmtFWZqIO1SW5z2ANpM8RPUH5euijJeDrReoIkpvZ WgrcszkTDuOX0QuP+Ut8dKSTIRo2V4I7BVxLMwTc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Qinglang Miao , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.10 214/530] soc: qcom: pdr: Fix error return code in pdr_register_listener Date: Wed, 12 May 2021 16:45:24 +0200 Message-Id: <20210512144826.875673222@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qinglang Miao [ Upstream commit 769738fc49bb578e05d404b481a9241d18147d86 ] Fix to return the error code -EREMOTEIO from pdr_register_listener rather than 0. Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao Link: https://lore.kernel.org/r/20201125065034.154217-1-miaoqinglang@huawei.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/soc/qcom/pdr_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/pdr_interface.c b/drivers/soc/qcom/pdr_interface.c index f63135c09667..205cc96823b7 100644 --- a/drivers/soc/qcom/pdr_interface.c +++ b/drivers/soc/qcom/pdr_interface.c @@ -153,7 +153,7 @@ static int pdr_register_listener(struct pdr_handle *pdr, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { pr_err("PDR: %s register listener failed: 0x%x\n", pds->service_path, resp.resp.error); - return ret; + return -EREMOTEIO; } pds->state = resp.curr_state; -- 2.30.2