Skip to content
Commit 4df9f5e3 authored by Vladimir Oltean's avatar Vladimir Oltean Committed by Ramon Fried
Browse files

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: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
parent 19ef59f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment