mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
Commitd698a38814("of: reserved-memory: ignore disabled memory-region nodes") added an early return in of_reserved_mem_device_init_by_idx(), but didn't call of_node_put() on a device_node whose ref-count was incremented in the call to of_parse_phandle() preceding the early exit. Fixes:d698a38814("of: reserved-memory: ignore disabled memory-region nodes") Signed-off-by: Chris Goldsworthy <[email protected]> Cc: [email protected] Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Rob Herring <[email protected]>