Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp440115iog; Mon, 13 Jun 2022 06:03:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhJUoKMVAxhpdtHXxWE1fcFwfnFFutl77syvhkeyHAWrPfrYg4WHET4RMflk4TYc12EJAy X-Received: by 2002:a17:903:44d:b0:167:6c02:3372 with SMTP id iw13-20020a170903044d00b001676c023372mr43427341plb.45.1655125342873; Mon, 13 Jun 2022 06:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125342; cv=none; d=google.com; s=arc-20160816; b=FHDoBCsbKsQ4GEmu2yKDcD6dB9UIDuQUaeh4E+SfV+RFvjEpFcWEmNbiZJ5oJ/Lkf8 67QGsR4LY0G0Pyql2opJ11cNNsMKhrRdkJ0KXREcxx2DVPabxAoZxb01UcXATpc3qrVy 5XB7JnZN1HDGzQvZAI0q0w+tVwn2JVGaBh3NWcyul1ruYxckH2IPYJUBiwq36DRcXU6r Q6LajqoW/JkhllHof8NmeGXPMTK+9Zea55D3LLxfGOZlNh4L6Q5BJC3DNy80LPu34Wef I1hFOoAhvw5Doce3UKgmj5Qg25OUA9LODtG7vkJheE3T0prHRgndoPVXteRHqWH+RKQr rDnQ== 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=+QIyAZKcZv6AKXK06ccuItPUU3p/enmUvPISwRfs8lg=; b=xa6p64h5L+F4oaDxypUczew6/PwvbZTRjMojdZz1TXd1K9UnsGdwJj1mmZiuY5sTiY FH25Xv8FbujBFuXzYufAIfW/NGVhUsFFIINmEYbFd+EUzShQfwWSv0Hj09QEDwhmzfWp ECuehX0nSYaemtBeGy61PrWurn/RRWOrsB22Vr8DKgiR52QRU5uNSFflr30ey+VXfsva q6QnrtJYXikxODH20cI7Gad+zzXV0GSb2Gj0bkanNqt+n6vXag489YiPF3O5plEc/D1w fapV1Id8IZk6E5WfJeMmQ+h1ALChnpJW7T0Y8DqIPJoiCkE4ELuR6yNLb2AGldYIU47Z ++/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TOH7zaeU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k137-20020a636f8f000000b004051465942fsi10864506pgc.288.2022.06.13.06.02.09; Mon, 13 Jun 2022 06:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TOH7zaeU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1354990AbiFMLgt (ORCPT + 99 others); Mon, 13 Jun 2022 07:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354648AbiFML3t (ORCPT ); Mon, 13 Jun 2022 07:29:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26EA2A729; Mon, 13 Jun 2022 03:45:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3108A60FDB; Mon, 13 Jun 2022 10:45:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B34AC34114; Mon, 13 Jun 2022 10:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117118; bh=/FzyOH71urNZyAIOe//wJh5fam/TnFMtc33o5CDYOds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TOH7zaeUOPC5H4SEFsUz+pCn91pOUlslrxrJ6lpnIyDoAazPbRUropHLRUNX3SiyJ A6a7oN0SUjuzV13KwpUYXRBcjUlaaLEorUPL4/OCYoaW2CTcOuvcO6lLP/ZG6kPq2v dZIqHt30RcjPgs+QoxxlaYvotJ4Bs9N2hd0rt9uY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.4 293/411] rpmsg: qcom_smd: Fix irq_of_parse_and_map() return value Date: Mon, 13 Jun 2022 12:09:26 +0200 Message-Id: <20220613094937.544692055@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Kozlowski [ Upstream commit 1a358d35066487d228a68303d808bc4721c6b1b9 ] The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO. Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend") Signed-off-by: Krzysztof Kozlowski Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220422105326.78713-1-krzysztof.kozlowski@linaro.org Signed-off-by: Sasha Levin --- drivers/rpmsg/qcom_smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index 19903de6268d..db5f6009fb49 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -1388,7 +1388,7 @@ static int qcom_smd_parse_edge(struct device *dev, edge->name = node->name; irq = irq_of_parse_and_map(node, 0); - if (irq < 0) { + if (!irq) { dev_err(dev, "required smd interrupt missing\n"); ret = irq; goto put_node; -- 2.35.1