[B.A.T.M.A.N.] [PATCHv3] batman-adv: Avoid double freeing of bat_counters

2013-04-17 Thread Martin Hundebøll
On errors in batadv_mesh_init(), bat_counters will be freed in both batadv_mesh_free() and batadv_softif_init_late(). This patch fixes this by returning earlier from batadv_softif_init_late() in case of errors in batadv_mesh_init() and by setting bat_counters to NULL after freeing. Signed-off-by:

Re: [B.A.T.M.A.N.] [PATCHv3] batman-adv: Avoid double freeing of bat_counters

2013-04-17 Thread Marek Lindner
On Thursday, April 18, 2013 03:13:16 Martin Hundebøll wrote: On errors in batadv_mesh_init(), bat_counters will be freed in both batadv_mesh_free() and batadv_softif_init_late(). This patch fixes this by returning earlier from batadv_softif_init_late() in case of errors in batadv_mesh_init()