kernel/drivers/pinctrl/pinconf-generic.c
.. .. @@ -393,8 +393,10 @@ 393 393 for_each_available_child_of_node(np_config, np) { 394 394 ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map, 395 395 &reserved_maps, num_maps, type); 396 - if (ret < 0)396 + if (ret < 0) {397 + of_node_put(np);397 398 goto exit; 399 + }398 400 } 399 401 return 0; 400 402