Re: [PATCH 4.3] vrf: Fix memory leak on registration failure in vrf_newlink()

From: David Miller
Date: Tue Dec 15 2015 - 12:48:16 EST


From: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
Date: Tue, 15 Dec 2015 15:12:43 +0000

> The backported version of commit 7f109f7cc371 ("vrf: fix double free
> and memory corruption on register_netdevice failure") incorrectly
> removed a kfree() from the failure path as well as the free_netdev().
> Add that back.
>
> Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>

Thanks for catching this:

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
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/