netdevsim: don't leak devlink resources
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 25 Jul 2018 22:39:27 +0000 (15:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:33:39 +0000 (22:33 -0700)
commitc259b4fb33ee6e7667bf1d34bf0803b7c5fdbdce
tree7ff41667fe1f0d2ab0af572b4e6b28b4000ee644
parentb87bac1012c483462e7776c7b7320b659dbb3295
netdevsim: don't leak devlink resources

Devlink resources registered with devlink_resource_register() have
to be unregistered.

Fixes: 37923ed6b8ce ("netdevsim: Add simple FIB resource controller via devlink")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/devlink.c