Skip to contentSkip to conversation

net: dsa: Add of_node_put() before break and return statements

PATCH Markus Elfring 1 participant 1 message Aug 26, 2020 Arm MediaTek

lore
Share & tools
lore
#0 lore raw

…

Quoted 4 lines

Fix a potential memory leak in mt7530.c by inserting of_node_put() before the break and return statements.

Issue found with Coccinelle.

Would you like to point any specific SmPL script out for such a source code analysis?

…

Quoted 7 lines

Changes in v3:
- Correct syntax errors
- Modify commit message

---

Signed-off-by …

* Please avoid a duplication for this tag.

* The patch version descriptions should be specified besides the diffstat.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=d012a7190fc1fd72ed48911e77ca97ba4521bccd#n753

Regards,
Markus

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek