On Fri, Jun 15, 2018 at 01:53:03AM +0300, Kamal Heib wrote: > @@ -2045,6 +2049,12 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) > eth->netdev[id]->base_addr, eth->netdev[id]->irq); > > return 0; > + > +free_hw_stats: > + devm_kfree(eth->dev, mac->hw_stats); You shouldn't need to free devm data. regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel