regulator: bcm590xx: of_node_put(np) missing

From: Alexey Khoroshilov
Date: Sat Jul 21 2018 - 19:02:30 EST


Hello,

bcm590xx_parse_dt_reg_data() calls of_node_get(np),
but there is nowhere of_node_put(np) in the driver.
Should we add of_node_put(np) and what is timeframe of_node_get(np) required for?

Found by Linux Driver Verification project (linuxtesting.org).

--
Alexey Khoroshilov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org