[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200730.165557.1799719576391347161.davem@davemloft.net>
Date: Thu, 30 Jul 2020 16:55:57 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: luwei32@...wei.com
Cc: kuba@...nel.org, wangyunjian@...wei.com, dan.carpenter@...cle.com,
andrew@...n.ch, alex.williams@...com, mdf@...nel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: nixge: fix potential memory leak in nixge_probe()
From: Lu Wei <luwei32@...wei.com>
Date: Wed, 29 Jul 2020 11:50:05 +0800
> If some processes in nixge_probe() fail, free_netdev(dev)
> needs to be called to aviod a memory leak.
>
> Fixes: 87ab207981ec ("net: nixge: Separate ctrl and dma resources")
> Fixes: abcd3d6fc640 ("net: nixge: Fix error path for obtaining mac address")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Lu Wei <luwei32@...wei.com>
Applied, thank you.
Powered by blists - more mailing lists