From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795946489; b=gfpcukUroPQog/XRSkdV9BGHcDOobGLebJULspBuymgHMUQc6Ow0A6vKJaC2rPFZtgvd Q58fFCPCNB4V70SkFgRT166RA0FHOGocIop8xG6O10jIFDBo6MqyRktxYldLjvPAwyHcj Ql7POjrsn1QKFBMhPv879AcosIeSqBtSptoHCmkFuLUdJRM05iQ+BwDm8uIESWW4HuSm4 7vISKqfBEwlHs0EvL5tvSyCn/Oz0PwuuVCk7W9jRp14m35YY2zZD/KRgL4kXh6HZRjCJf kka3+d+BcJbZ0LsqDBLhuEwP9mbbD8SK3a39eny7lVA7Qd61zreAE6W2+my7+taP2Ug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795946489; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8F/jhgw1XVXrag1Fu+Qr8CWadB+PDhSC/ZydN0OgYfI=; b=qDkURliyZHELEw2tHdOMa26PO1Po4jTcDN8ELvXFvpHnQ4IpmclB1evidEo2GMBqC3K1 xA3LsT+TDyFn4GmxFYh3sw6+POf+W3sg7q8bO1kosZNHnbtRU2qCLr0lZEp+7p1VoXE3U NaeCE8FmCDQzQ4+FN1oY+khOXJ9IQ1TZicWLISp6J7g9wb3VE5LDTGL1XVTOX55uNWJMe HHguVBgyo7feolxLAYAOHvv3eNBxZDpKhrVlHN0jvpv6WOCkWYGlYjRGlI6dUKmnN7xO2 mkXbrLltHVIAs1ODfNx+RjbH1u1nejIcgF4Srnp+gKaP3rA4WPStBCbYxm/GRsoOXug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LoohfmhZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7595606A323 for ; Sun, 29 Nov 2026 10:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LoohfmhZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21C3B1F00897; Sun, 29 Nov 2026 10:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795946489; bh=8F/jhgw1XVXrag1Fu+Qr8CWadB+PDhSC/ZydN0OgYfI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LoohfmhZWp19REOmzmXLuuLH+MutYcE5WPVt13jzsrNmtzQskj3aepnRzDOW2yid9 AnpLYPFu7STyCE1o9dGmiolPLh4R5EMVZaZ7YPmEqPxqCxHgGq9wG8YduoMYDW7Sga Y+njns/ww6OrNjBF8iq4djxMP+VadaJLNNJYeCUoL5eHrIv3INbuXa7gIE5jqXgM57 yLyQ9L44ujq5ndPfI9lXgr8xiPo0kp2rXb/eaKmPleRa0ls0bNZheU7+yF7qOohTH3 5UDe9/smROHLD0jYhxcXxha56HAY+900wWzqBKUCN4ugtynKa/s58Hrak9QifuWC2A 1s0lIaPegYX+Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] gpio: pxa: Publish the legacy IRQ domain after GPIO setup succeeds Reply-To: sashiko-reviews@lists.linux.dev To: "Tian Xuechen" <202300460064@mail.sdu.edu.cn> Cc: linux-gpio@vger.kernel.org In-Reply-To: <20261129094739.1691742-1-202300460064@mail.sdu.edu.cn> References: <20261129094739.1691742-1-202300460064@mail.sdu.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 10:01:28 +0000 X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] gpio: pxa: NULL pointer dereference in pxa_gpio_probe_dt() [1] -- commit b66797fa4e010f68c27fe464b77da0fdb10324ea Author: Tian Xuechen <202300460064@mail.sdu.edu.cn> gpio: pxa: Publish the legacy IRQ domain after GPIO setup succeeds This commit creates the legacy IRQ domain after GPIO chip registration succeeds, uses devm_gpiochip_add_data(), and disables manual driver unbind. > diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c > index 17e95ee4fef64..1689a05da6c95 100644 > --- a/drivers/gpio/gpio-pxa.c > +++ b/drivers/gpio/gpio-pxa.c [ ... ] > @@ -637,11 +645,6 @@ static int pxa_gpio_probe(struct platform_device *pd= ev) > if (!pxa_last_gpio) > return -EINVAL; > =20 > - pchip->irqdomain =3D irq_domain_create_legacy(dev_fwnode(&pdev->dev), p= xa_last_gpio + 1, > - irq_base, 0, &pxa_irq_domain_ops, pchip); > - if (!pchip->irqdomain) > - return -ENOMEM; > - [Severity: High] This problem wasn't introduced by this patch, but can pxa_gpio_probe() -> pxa_gpio_probe_dt() cause a NULL pointer dereference [1] on a non-DT platform device without platform data? When dev_get_platdata() returns NULL, pxa_gpio_probe() falls back to pxa_gpio_probe_dt(), which dereferences the result of of_device_get_match_data() without checking for NULL: drivers/gpio/gpio-pxa.c:pxa_gpio_probe_dt() { ... gpio_id =3D of_device_get_match_data(&pdev->dev); gpio_type =3D gpio_id->type; ... } [1] https://sashiko.dev/#/bug/linux-ddf1292a-99b3-45e7-9575-418a500c6bcf --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129094739.1691= 742-1-202300460064@mail.sdu.edu.cn?part=3D1