Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3026051pxj; Mon, 17 May 2021 15:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4gsMJQhSoibh8808KgAINk+voDXSyY9sEbk/515M0kRXFuXQnrxOxph0nGcWO73QX937J X-Received: by 2002:a05:6e02:eb0:: with SMTP id u16mr1624845ilj.263.1621292098528; Mon, 17 May 2021 15:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621292098; cv=none; d=google.com; s=arc-20160816; b=jWhxlX0M/KVulG1y2s9pWy7AVKMyQxMNwe291s8Gssy0oz168uOlGN41daCL4EIoiq QHsfpswYYt2lNx275nBJ9Vl0zV1MsWIQMpX1UXIpi1YREEgbTCl5ekuK/9hcDjfr5PfE v6kiVDyjiIVU/uC9PYpeBHVGg50P2lqiZaGApkOyVIoprgILhLIHIXLpJFwtX5mc5se3 Keu2T3RZFAG+XrWyad0LeiXgIZ3BFf4p/TE/evlXqMsmgtCbCnYy6I83t9Hi17go/EJp S23FJQEH8YZfSTMDlTg4g0yZQ57dYTkyJ5/PR/a1wt8tqiT/Gt/vayNkQE7mIBRQ96S+ DlTQ== 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=DB1qto67go/Jr7mcYmE+NE3hoF5wDycySdpwCmlYfkHiK8lgkFD5wLbUhXkSO8C8Qg Z7wb/esBfDK49ecYAnWb5PwltPV2mf+kRDafJiDNmb4fdOvVvnms0a3Y8RWZcxpnyZ54 U9xOStKQYCLJpld65gIR15FXpHXGrz3feNyCmfhT6zieWtbR1wk0erncQ1MsbczKcE5K J1HFZVijvxp/ftzbhS3VGUaoVK2LrXTnhjdW6R6PkJOBerOZoFgpSIwFSrquyWgZcBWz llKq1X4L/3Fn9BaT4qKFRT1AnymjwWnv5LxbXZKcedECupGRwe4bug1GzSBrZ5J9j8uz fryA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="t5/MzqUC"; 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 i5si17703861iow.84.2021.05.17.15.54.46; Mon, 17 May 2021 15:54:58 -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="t5/MzqUC"; 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 S238941AbhEQORU (ORCPT + 99 others); Mon, 17 May 2021 10:17:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:46778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239039AbhEQOOr (ORCPT ); Mon, 17 May 2021 10:14:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0579613E9; Mon, 17 May 2021 14:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260555; bh=M99jlExbeeNqNrnCe9YF9Fksjjl/8jFrCYgKEFiBW5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t5/MzqUCTMK6GZ4jMq+ag/TnYPmmzqiiXvxY8+MMK0D/hAodSB92zLEc/Bj0rrngX eLW1BII3HD74TB/ZJHbWLiVxMEMUE/C4qpdZQAfz8bVY//mZ5hpAuU87F95GLylUXj Tbw2biqe4HvFpT8xzeGdMp9HA1o9ykU30HY+PmgU= 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.12 133/363] PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc() Date: Mon, 17 May 2021 15:59:59 +0200 Message-Id: <20210517140307.116604937@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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