RE: [PATCH net v3] driver: dummy: Fix one possbile memleak when fail to register_netdevice

2017-05-01 Thread Gao Feng
> From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, May 1, 2017 10:54 AM > > Please, Gao, submit this as a proper, numbered, patch series with a proper > header posting. > > That way you can explain why you took this strategy to fix this problem, > compared to your original

Re: [PATCH net v3] driver: dummy: Fix one possbile memleak when fail to register_netdevice

2017-04-30 Thread David Miller
Please, Gao, submit this as a proper, numbered, patch series with a proper header posting. That way you can explain why you took this strategy to fix this problem, compared to your original approach. Thanks.

[PATCH net v3] driver: dummy: Fix one possbile memleak when fail to register_netdevice

2017-04-28 Thread gfree . wind
From: Gao Feng The dummy driver allocates dev->dstats and priv->vfinfo in its ndo_init func dummy_dev_init, free the dev->dstats in the ndo_uninit and free the priv->vfinfo in its destructor func. Then there is one memleak that some errors happen after register_netdevice