Skip to content
Commit 9c86c0f4 authored by Axel Lin's avatar Axel Lin Committed by David S. Miller
Browse files

net: r6040: Return proper error for r6040_init_one



Return -ENOMEM instead of 0 for the case of mdiobus_alloc and kmalloc failure.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2a8fe003
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment