Re: [PATCH 4.3 2/2] vrf: fix double free and memory corruption on register_netdevice failure

From: David Ahern
Date: Tue Dec 15 2015 - 10:50:26 EST


On 12/15/15 8:32 AM, Nikolay Aleksandrov wrote:
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 488c6f5..374feba 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -608,7 +608,6 @@ static int vrf_newlink(struct net *src_net, struct net_device *dev,

out_fail:
kfree(vrf_ptr);
- free_netdev(dev);
return err;
}


Acked-by: David Ahern <dsa@xxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/