Skip to content
Commit b904aada authored by Parav Pandit's avatar Parav Pandit Committed by David S. Miller
Browse files

devlink: Add WARN_ON to catch errors of not cleaning devlink objects



Add WARN_ON to make sure that all sub objects of a devlink device are
cleanedup before freeing the devlink device.
This helps to catch any driver bugs.

Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cbd72b48
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