[PATCH 0/2] soc/tegra: fuse: Fix unsupported SoC init path and log formatting

Jinhui Guo posted 2 patches 1 month, 4 weeks ago
drivers/soc/tegra/fuse/fuse-tegra.c    | 2 +-
drivers/soc/tegra/fuse/tegra-apbmisc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH 0/2] soc/tegra: fuse: Fix unsupported SoC init path and log formatting
Posted by Jinhui Guo 1 month, 4 weeks ago
Hi,

This series contains two small fixes for the Tegra fuse driver.

Patch 1 fixes the legacy initialization path used on 32-bit ARM systems
when no FUSE device tree node is present. If the detected chip ID is not
supported, the current code only emits a warning and then continues with
fuse->soc left as NULL. This can lead to a NULL pointer dereference when
fuse->soc->init(fuse) is called later. Return -ENODEV from the default
case to stop initialization immediately.

Patch 2 adds a missing trailing newline to an APBMISC error message in
tegra_acpi_init_apbmisc(), so the kernel log remains properly formatted.

Jinhui Guo (2):
  soc/tegra: fuse: Return -ENODEV for unsupported legacy SoCs
  soc/tegra: fuse: Add missing newline to APBMISC error message

 drivers/soc/tegra/fuse/fuse-tegra.c    | 2 +-
 drivers/soc/tegra/fuse/tegra-apbmisc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.20.1
Re: (subset) [PATCH 0/2] soc/tegra: fuse: Fix unsupported SoC init path and log formatting
Posted by Thierry Reding 1 month, 3 weeks ago
From: Thierry Reding <treding@nvidia.com>


On Tue, 04 Aug 2026 20:19:08 +0800, Jinhui Guo wrote:
> This series contains two small fixes for the Tegra fuse driver.
> 
> Patch 1 fixes the legacy initialization path used on 32-bit ARM systems
> when no FUSE device tree node is present. If the detected chip ID is not
> supported, the current code only emits a warning and then continues with
> fuse->soc left as NULL. This can lead to a NULL pointer dereference when
> fuse->soc->init(fuse) is called later. Return -ENODEV from the default
> case to stop initialization immediately.
> 
> [...]

Applied, thanks!

[2/2] soc/tegra: fuse: Add missing newline to APBMISC error message
      commit: 308be3ea5c8d0bb362fb50c38923849a268e078e

Best regards,
-- 
Thierry Reding <treding@nvidia.com>