Hi Scott,

A minor error handling bug

> +     const u32 *data = of_get_property(np, "phy-handle", &len);
> +     if (!data || len != 4)
> +             return -EINVAL;
> +
> +     phynode = of_find_node_by_phandle(*data);
> +     if (!phynode)
> +             return -EINVAL;
> +
> +     mdionode = of_get_parent(phynode);
> +     if (!phynode)

if (!mdionode)

> +             goto out_put_phy;

Best regards,
Esben

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to