Re: [PATCH] net-sysfs: Fix memory leak in netdev_register_kobject
From: Andy Shevchenko
Date: Tue Mar 19 2019 - 06:23:06 EST
On Tue, Mar 19, 2019 at 11:39:54AM +0800, wanghai (M) wrote:
> å 2019/3/19 11:15, Stephen Hemminger åé:
> Device_del just delete device from system, but do not clean up
> dev->kobj.name.
May I ask how you get this conclusion?
> In normal case, the name is freed in free_netdev(dev)->put_device(&dev->dev)->kobject_put(&dev->kobj)->kobject_cleanup()
> ,not in device_del()
--
With Best Regards,
Andy Shevchenko