]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: fix kernel OOPS when remove davinci_mdio module
authorBin Liu <b-liu@ti.com>
Thu, 30 Aug 2012 06:37:32 +0000 (06:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 20:35:07 +0000 (16:35 -0400)
commit69d1b18cf919c042ea0db1f86eb099d582712bb1
tree4c49812f7e3700ab1faa8ee706c22c2c80342b74
parent6c0b2cbf704588e15e71e68dd461edb79b6f81b3
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: Bin Liu <b-liu@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c