Tag: aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e

drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free

Author: Peter Senna Tschudin <peter.senna@gmail.com> Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 Calling mdiobus_free without calling mdiobus_unregister causes BUG_ON(). This patch fixes the issue. The semantic patch that found this issue(http://coccinelle.lip6.fr/): // @@ expression E; @@ … when != mdiobus_unregister(E); + mdiobus_unregister(E); mdiobus_free(E); // Signed-off-by: Peter Senna Tschudin Signed-off-by: David S. Miller — drivers/net/phy/mdio-bitbang.c | 1 + 1 …

Continue reading