[PATCH v2] mtd: Fix resource leaks in for_each_child_of_node() loops

Markus Elfring Markus.Elfring at web.de
Mon Jul 10 10:19:26 PDT 2023


Would a subject like “[PATCH v3] mtd: core: Fix resource leak in a for_each_child_of_node() loop”
be more appropriate?


> Ensure child node references are decremented properly in the error path.

How do you think about the following wording variant?

  Ensure child node references are properly decremented in the error path
  of this function implementation.


Would you like to add the tag “Fixes” because of the completion
of the exception handling?

Regards,
Markus



More information about the linux-mtd mailing list