Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964956AbbLOPuW (ORCPT ); Tue, 15 Dec 2015 10:50:22 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:36340 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932781AbbLOPuU (ORCPT ); Tue, 15 Dec 2015 10:50:20 -0500 Subject: Re: [PATCH 4.3 2/2] vrf: fix double free and memory corruption on register_netdevice failure To: Nikolay Aleksandrov , Greg Kroah-Hartman References: <56702E7E.5000604@cumulusnetworks.com> <20151215153220.GP28542@decadent.org.uk> Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "David S. Miller" From: David Ahern Message-ID: <567036BA.5000308@cumulusnetworks.com> Date: Tue, 15 Dec 2015 08:50:18 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151215153220.GP28542@decadent.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 20 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/