Skip to content
Commit b27393ae authored by Bin Liu's avatar Bin Liu Committed by David S. Miller
Browse files

net: ethernet: fix kernel OOPS when remove davinci_mdio module



davinci mdio device is not unregistered from mdiobus when removing
the module, which causes BUG_ON() when free the device from mdiobus.

Calling mdiobus_unregister() before mdiobus_free() fixes the issue.

Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 599901c3
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