[PATCH] net: thunderx: fix fwnode_handle leak in bgx_init_of_phy()

Selby Mashiki mashikiselby at gmail.com
Sun Oct 25 13:37:33 PDT 2026


Hi,

Here is the additional information requested by the bot:

- Discovery: Found via a static analysis script scanning for
  device_for_each_child_node() / fwnode_for_each_child_node() loops that
  exit early without releasing the child fwnode_handle reference,
  followed by manual code inspection.
- Triggered vs. theoretical: Theoretical (found by static analysis and
  code inspection, not triggered at runtime).
- Hardware testing: Compile-tested only (-Werror); not tested on real
  Cavium ThunderX hardware as I do not have access to the device.

Best regards,
Selby Mashiki



More information about the linux-arm-kernel mailing list