return;
cancel_delayed_work(&priv->mib_work);
- kfree(priv->mib_stats);
}
static struct ar8216_priv *
static void
ar8xxx_free(struct ar8216_priv *priv)
{
+ kfree(priv->mib_stats);
kfree(priv);
}
ret = register_switch(swdev, pdev->attached_dev);
if (ret)
- goto err_cleanup_mib;
+ goto err_free_priv;
printk(KERN_INFO "%s: %s switch driver attached.\n",
pdev->attached_dev->name, swdev->name);
err_unregister_switch:
unregister_switch(&priv->dev);
-err_cleanup_mib:
- ar8xxx_mib_cleanup(priv);
err_free_priv:
ar8xxx_free(priv);
pdev->priv = NULL;