From nobody Sat Jun 13 17:09:10 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2431B36D9EA; Wed, 6 May 2026 07:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778051832; cv=none; b=AWSt0rm8PopdL4BHwiNjRVkqTvobJ1CnnyPvo73F0+ggrvyBBgqKgvBpwFUG8pedxFEhw7BFlRdH8lNGbzFsDt636qCue7SrIjw9Dhr2SdFFjbf/ToVlCNT9zaY9ddcbzy+OfeSs7hfisA8mXm7BNA7B6oL1sMjTwr4SXqZ3wR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778051832; c=relaxed/simple; bh=A4bzhZm3kkwNFxVu5KirMafPzFIbUBDbbcy03beOFVc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WLPijANqmpL0O0w6DyL5Rjx5IxXr8fCmSQUhbr8jbe4pFSUVh768q1X7ndFYzSf5PQWTGkwvu3TPn1PWfLPdkCt+AfEB4ynWcFNqsjgM2ycX105kWOTWpc8iPhnUtqgvhPsAY/6c8gRqtF6vtENh378FoO/gmeLeeu+1WGHvcq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jiOhKjAk; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=D1TYbF8F; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jiOhKjAk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="D1TYbF8F" Date: Wed, 06 May 2026 07:17:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778051827; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RN920HRc8wtP2t5dtFJ2cyfLSzc6BMwJfR2MInkOmY8=; b=jiOhKjAkX39o1KgEwGP4zwedkwc9XaoJZ/akLhRoI/mWjvVHIku+gjQoZuJqXdWOZRD/14 X5a5EZEVMokjKdrMtYUhUtwqKG6B7XbyFXPCosj1xAm5bPWLntR+x2sccjZYcb/lSpKYpU BjMG7Gs+rDvvXNi1Krrl9WhIyYhu38IxZ6N4HBA7EydyYZOsp83WLruFL3AvDhQFiTIunZ H+k6uIvVLlV2x5q4qbLpmUHISRZDJvHmFGy0uwH1BOIKVhzlF5pv6X5jHwFhTtgUjHYrVs V8ZL39VfIx5xr2K05fGGUgHgzyF192trjHOEzxiTsG7C9z0aVD7vAIs0xkJZqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778051827; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RN920HRc8wtP2t5dtFJ2cyfLSzc6BMwJfR2MInkOmY8=; b=D1TYbF8Fd7wljWMSxewk9/knESb6PKapuf6NIAB0U6fgCldFvHTSQDSk2y4rSagivKgHFH swpeKkrifANUlwCA== From: "tip-bot2 for Chen Ni" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/starfive: Fix error check for devm_platform_ioremap_resource() Cc: Chen Ni , Thomas Gleixner , Changhuang Liang , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260506041413.1670799-1-nichen@iscas.ac.cn> References: <20260506041413.1670799-1-nichen@iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177805182606.424702.18198934458615670189.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: 8b9db67396105f6b95bcc57a354e50ac20705704 Gitweb: https://git.kernel.org/tip/8b9db67396105f6b95bcc57a354e50ac2= 0705704 Author: Chen Ni AuthorDate: Wed, 06 May 2026 12:14:13 +08:00 Committer: Thomas Gleixner CommitterDate: Wed, 06 May 2026 09:13:12 +02:00 irqchip/starfive: Fix error check for devm_platform_ioremap_resource() devm_platform_ioremap_resource() returns an error pointer on failure, not NULL. Fix the check to use IS_ERR() and return PTR_ERR() to correctly handle allocation failures. Fixes: 2f59ca185497 ("irqchip/starfive: Use devm_ interfaces to simplify re= source release") Signed-off-by: Chen Ni Signed-off-by: Thomas Gleixner Reviewed-by: Changhuang Liang Link: https://patch.msgid.link/20260506041413.1670799-1-nichen@iscas.ac.cn --- drivers/irqchip/irq-starfive-jhb100-intc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-starfive-jhb100-intc.c b/drivers/irqchip/i= rq-starfive-jhb100-intc.c index 0d59148..838885b 100644 --- a/drivers/irqchip/irq-starfive-jhb100-intc.c +++ b/drivers/irqchip/irq-starfive-jhb100-intc.c @@ -208,8 +208,8 @@ static int starfive_intc_probe(struct platform_device *= pdev, struct device_node=20 return -ENOMEM; =20 irqc->base =3D devm_platform_ioremap_resource(pdev, 0); - if (!irqc->base) - return dev_err_probe(&pdev->dev, -ENXIO, "unable to map registers\n"); + if (IS_ERR(irqc->base)) + return dev_err_probe(&pdev->dev, PTR_ERR(irqc->base), "unable to map reg= isters\n"); =20 rst =3D devm_reset_control_get_optional_exclusive_deasserted(&pdev->dev, = NULL); if (IS_ERR(rst))