]> git.dujemihanovic.xyz Git - u-boot.git/commit
scripts: ensure the cocci script for miiphy_register does not leak the MDIO bus
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 27 Sep 2021 11:22:05 +0000 (14:22 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:57 +0000 (18:50 +0300)
commit4df9f5e39fb224a4857c3411b4cbe419e4d339e8
treeb5fe674b0e40c0fa97bd8a360da79bdb335c4b0d
parent19ef59f1e098a977272080f5a7321169d8b98f34
scripts: ensure the cocci script for miiphy_register does not leak the MDIO bus

When mdio_register fails, mdio_free should be called on the mdiodev that
was previously allocated with mdio_alloc.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
scripts/coccinelle/net/mdio_register.cocci