Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61A87C4332F for ; Mon, 13 Dec 2021 10:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242361AbhLMKH2 (ORCPT ); Mon, 13 Dec 2021 05:07:28 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:49848 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240507AbhLMKCC (ORCPT ); Mon, 13 Dec 2021 05:02:02 -0500 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 sin.source.kernel.org (Postfix) with ESMTPS id DB169CE0F1C; Mon, 13 Dec 2021 10:02:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B376CC34601; Mon, 13 Dec 2021 10:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1639389719; bh=gYagyYNesN1+azpI4k5Dvmoq4mI/SFcMSxDVU8e70us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qM8GtbRf4gujM0q2DU8bhPr1Ta1TCVL1qshGZZLH6HpJ+MbOt5XCDJ1ve+ycl5vrs kac09QAf3l5BHr4RI/02R8mqPSnmane1Ob74QIhTBqTtcEDm0CZsnyTI9S6zR+dEsx RlTjGiZHwIdz8+KvVWl7gKJbg3/0djflgAI+uCqg= 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?= , Marc Zyngier Subject: [PATCH 5.15 164/171] irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc() Date: Mon, 13 Dec 2021 10:31:19 +0100 Message-Id: <20211213092950.535498418@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211213092945.091487407@linuxfoundation.org> References: <20211213092945.091487407@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 commit ce20eff57361e72878a772ef08b5239d3ae102b6 upstream. IRQ domain alloc function should return zero on success. Non-zero value indicates failure. Signed-off-by: Pali Rohár Fixes: fcc392d501bd ("irqchip/armada-370-xp: Use the generic MSI infrastructure") Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20211125130057.26705-1-pali@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-armada-370-xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -250,7 +250,7 @@ static int armada_370_xp_msi_alloc(struc NULL, NULL); } - return hwirq; + return 0; } static void armada_370_xp_msi_free(struct irq_domain *domain,