Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp413050pxj; Tue, 18 May 2021 06:17:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKoX81nLg2wTpKg/Ccmev56LSgVpVmJZXcBb83bquk8Anfl7WpYGaK0Bb7Jcd/wcXcs6hf X-Received: by 2002:a05:6402:12d3:: with SMTP id k19mr6996643edx.52.1621343849183; Tue, 18 May 2021 06:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621343849; cv=none; d=google.com; s=arc-20160816; b=S80+rnYFFaOhsGBT5ce+W3kpjpoaH3sSZkB3UC16YtprMHyyszbNq6f6UYutzbNfhg LY8fgRR3/Hx59XH79f8OrsjUhWGSGp9xxM992kZ9MR+5ysoL0Qq4C9LCfsKNnmGl9mOV 9BoznJx7GNaFBBuxwNplvYa62WjiteWAHbySt0278TcJFhRT/8wQ6v4AXes7ERK8nlRE nZvGE4vLYkrRh0xsSoGd1bjILBzFgZ0pFzhwMC7BRrD/T/WDKDgjQkM9yb0bv+j3IUPc 5N/vlmfHZI4PcJ1pl1qxlHDD/M6cyP/ehsvnSqhmt8C3l88eC2gX1iP6/SfBOvFcAT9h +e4g== 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=gO9DfPYKEkP2gjF1bPMsHApsbSQPLJjuI1nNgYgYfgc=; b=al1G1t76b9DZEumM7WFjqoBZ21R7zQvANYPZiVBHTB19yOKGE7xrEm8RZ9wVGQ2wxB mcdLXmtpS47DnjdQpr3SLJXMHouI5pQFo6mfhIlE1r8WLXfCT39Y9I/YnFR8nc0t/oom hS+0VCc6tJoGYIF7uHdydOaYDc/J2ktSi7b+elq8+acyiBTXvDnbrsd34NO4T6+rRRMt evcAGzuZXmZOPsuKIUK+mPMNKobD7JotqAuc0ilHJNtoA2lJcdOCb6OdXbTI48mrh3X9 z+jpXV4aM74Hba3XCURDA8bUdmdTQcewD/npLAp3ZlQdn5qw6WrAhkZRlN16UoaDyRqc ttrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WR1Vt0W9; 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 c14si5785274eds.262.2021.05.18.06.17.05; Tue, 18 May 2021 06:17:29 -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=WR1Vt0W9; 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 S244119AbhEQPg0 (ORCPT + 99 others); Mon, 17 May 2021 11:36:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:52810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244205AbhEQPTj (ORCPT ); Mon, 17 May 2021 11:19:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B129961C7A; Mon, 17 May 2021 14:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262035; bh=M99jlExbeeNqNrnCe9YF9Fksjjl/8jFrCYgKEFiBW5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WR1Vt0W9yCN/e9j90MYltwSKCpSxUP61h/JW/mlB411RizD6LMVqGUfhGkd7NelL/ fWdIH13M2ZAwSq3KBdpRJwhQYFkgUBn3TnCE1/WR5a6lr4BUreVeC12Q8ravse87QB yPhbevcY6ULDg1Rnyegpdn/O+CuTYHZHvnTY3pbo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Ray Jui , Marc Zyngier , Sasha Levin Subject: [PATCH 5.10 102/289] PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc() Date: Mon, 17 May 2021 16:00:27 +0200 Message-Id: <20210517140308.616340919@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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: Pali Rohár [ Upstream commit 1e83130f01b04c16579ed5a5e03d729bcffc4c5d ] IRQ domain alloc function should return zero on success. Non-zero value indicates failure. Link: https://lore.kernel.org/r/20210303142202.25780-1-pali@kernel.org Fixes: fc54bae28818 ("PCI: iproc: Allow allocation of multiple MSIs") Signed-off-by: Pali Rohár Signed-off-by: Lorenzo Pieralisi Reviewed-by: Krzysztof Wilczyński Acked-by: Ray Jui Acked-by: Marc Zyngier Signed-off-by: Sasha Levin --- drivers/pci/controller/pcie-iproc-msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c index 908475d27e0e..eede4e8f3f75 100644 --- a/drivers/pci/controller/pcie-iproc-msi.c +++ b/drivers/pci/controller/pcie-iproc-msi.c @@ -271,7 +271,7 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain, NULL, NULL); } - return hwirq; + return 0; } static void iproc_msi_irq_domain_free(struct irq_domain *domain, -- 2.30.2