aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-05-17 09:04:13 +0000
committerDavid S. Miller <[email protected]>2021-05-17 22:50:58 +0000
commit1dde47a66d4fb181830d6fa000e5ea86907b639e (patch)
tree79c1bf119de5e69c4ad4441464a8bb124a864381 /net/tipc/net.c
parentMerge branch 'gve-fixes' (diff)
downloadkernel-1dde47a66d4fb181830d6fa000e5ea86907b639e.tar.gz
kernel-1dde47a66d4fb181830d6fa000e5ea86907b639e.zip
net: mdiobus: get rid of a BUG_ON()
We spotted a bug recently during a review where a driver was unregistering a bus that wasn't registered, which would trigger this BUG_ON(). Let's handle that situation more gracefully, and just print a warning and return. Reported-by: Russell King (Oracle) <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions