From: Zhao Feng <zhao…@cmss.chinamobile.com>
Hi,
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by code inspection).
The issue was found by code inspection: an OF reference-counting
audit of spl2sw_probe(). of_get_child_by_name() returns the
"ethernet-ports" node with an elevated reference count, and the
probe path never drops it. It was not observed at runtime.
> - What hardware the change was tested on.
The change was not tested on real hardware - I do not have Sunplus
SP7021 hardware. The patch only adds the missing of_node_put()
calls; it was verified against current upstream master.
Thanks,
Zhao Feng